pcmt/app/routes.go

23 lines
382 B
Go
Raw Normal View History

2023-03-22 23:03:21 +01:00
package app
import (
"net/http"
"git.dotya.ml/mirre-mt/pcmt/handlers"
2023-03-22 23:03:21 +01:00
"github.com/labstack/echo/v4"
)
func (a *App) SetupRoutes() {
e := a.E()
e.GET("/", func(c echo.Context) error {
return c.NoContent(http.StatusOK)
})
e.HEAD("/", func(c echo.Context) error {
return c.NoContent(http.StatusOK)
})
// administrative endpoints.
e.GET("/admin", handlers.Admin())
2023-03-22 23:03:21 +01:00
}