2023-03-22 23:03:21 +01:00
|
|
|
package app
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
2023-03-22 23:11:14 +01:00
|
|
|
"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)
|
|
|
|
})
|
2023-03-22 23:11:14 +01:00
|
|
|
|
|
|
|
// administrative endpoints.
|
|
|
|
e.GET("/admin", handlers.Admin())
|
2023-03-22 23:03:21 +01:00
|
|
|
}
|