Private
Public Access
1
0

zones: per zone server counts API migrated
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-12-23 01:32:52 -08:00
parent 19c02063e9
commit 47b96cd598
7 changed files with 282 additions and 2 deletions

View File

@@ -195,7 +195,7 @@ func (srv *Server) Run() error {
if len(ntpconf.WebHostname()) > 0 {
e.POST("/api/server/scores/:server/:mode", func(c echo.Context) error {
// POST requests used to work
// POST requests used to work, so make them not error out
mode := c.Param("mode")
server := c.Param("server")
query := c.Request().URL.Query()
@@ -210,7 +210,7 @@ func (srv *Server) Run() error {
}
e.GET("/graph/:server/:type", srv.graphImage)
// e.GET("/api/server/scores/:server/:type", srv.logScores)
e.GET("/api/zone/counts/:zone_name", srv.zoneCounts)
g.Go(func() error {
return e.Start(":8030")