statping/handlers/incident.go

12 lines
216 B
Go
Raw Normal View History

2019-06-24 22:21:38 +00:00
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)
}