1
0
forked from MTSR/mapserver
mapserver/web/stats.go
BuckarooBanzay 57ebd896da use
2021-04-12 13:55:00 +02:00

12 lines
224 B
Go

package web
import (
"encoding/json"
"net/http"
)
func (api *Api) GetStats(resp http.ResponseWriter, req *http.Request) {
resp.Header().Add("content-type", "application/json")
json.NewEncoder(resp).Encode(LastStats)
}