Initial commit for the web interface
This commit is contained in:
commit
4eea7769ff
36 changed files with 1186 additions and 0 deletions
23
api/routes.go
Normal file
23
api/routes.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue