This commit is contained in:
kandrusyak
2023-07-25 00:51:02 +03:00
parent 70fc71051d
commit 2ab8622141
2 changed files with 9 additions and 0 deletions

View File

@@ -35,6 +35,10 @@ func main() {
mainGroup := e.Group("/api")
mainGroup.OPTIONS("/*", func(c echo.Context) error {
return c.NoContent(http.StatusOK)
})
// Routes
mainGroup.GET("/*", checkAuth)
mainGroup.GET("/health", handler.Health)