mirror of https://github.com/statping/statping
12 lines
216 B
Go
12 lines
216 B
Go
|
package handlers
|
||
|
|
||
|
import (
|
||
|
"github.com/hunterlong/statping/core"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
func apiAllIncidentsHandler(w http.ResponseWriter, r *http.Request) {
|
||
|
incidents := core.AllIncidents()
|
||
|
returnJson(incidents, w, r)
|
||
|
}
|