1
0
forked from MTSR/mapserver
mapserver/web/stats.go

12 lines
224 B
Go
Raw Permalink Normal View History

package web
import (
"encoding/json"
"net/http"
)
2021-04-12 14:55:00 +03:00
func (api *Api) GetStats(resp http.ResponseWriter, req *http.Request) {
resp.Header().Add("content-type", "application/json")
json.NewEncoder(resp).Encode(LastStats)
}