Initial commit for the web interface

This commit is contained in:
nemunaire 2022-10-01 19:37:12 +02:00
commit 4eea7769ff
36 changed files with 1186 additions and 0 deletions

23
api/routes.go Normal file
View file

@ -0,0 +1,23 @@
package api
import (
"net/http"
"github.com/gin-gonic/gin"
"git.nemunai.re/nemunaire/reveil/config"
//"git.nemunai.re/nemunaire/reveil/model"
)
func DeclareRoutes(router *gin.Engine, cfg *config.Config) {
apiRoutes := router.Group("/api")
apiRoutes.GET("/test", func(c *gin.Context) {
c.JSON(http.StatusOK, "test")
})
//declareFilesRoutes(cfg, apiAuthRoutes)
//declareIngredientsRoutes(cfg, apiAuthRoutes)
//declareRecipesRoutes(cfg, apiAuthRoutes)
//declareUsersRoutes(cfg, apiAuthRoutes)
}