19 lines
277 B
Go
19 lines
277 B
Go
|
package app
|
||
|
|
||
|
import (
|
||
|
"net/http"
|
||
|
|
||
|
"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)
|
||
|
})
|
||
|
}
|