Mock API
This commit is contained in:
parent
be8ff3466a
commit
a9be05854c
11 changed files with 331 additions and 12 deletions
|
@ -1,23 +1,20 @@
|
|||
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)
|
||||
declareActionsRoutes(cfg, apiRoutes)
|
||||
declareAlarmsRoutes(cfg, apiRoutes)
|
||||
declareGongsRoutes(cfg, apiRoutes)
|
||||
declareHistoryRoutes(cfg, apiRoutes)
|
||||
declareQuotesRoutes(cfg, apiRoutes)
|
||||
declareRoutinesRoutes(cfg, apiRoutes)
|
||||
declareTracksRoutes(cfg, apiRoutes)
|
||||
declareSettingsRoutes(cfg, apiRoutes)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue