2022-10-01 17:37:12 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
|
|
|
"git.nemunai.re/nemunaire/reveil/config"
|
2022-10-05 18:26:37 +00:00
|
|
|
"git.nemunai.re/nemunaire/reveil/model"
|
2022-10-01 17:37:12 +00:00
|
|
|
)
|
|
|
|
|
2022-10-06 12:17:58 +00:00
|
|
|
func DeclareRoutes(router *gin.Engine, cfg *config.Config, db *reveil.LevelDBStorage, resetTimer func()) {
|
2022-10-01 17:37:12 +00:00
|
|
|
apiRoutes := router.Group("/api")
|
|
|
|
|
2022-10-02 21:24:53 +00:00
|
|
|
declareActionsRoutes(cfg, apiRoutes)
|
2022-10-14 18:08:03 +00:00
|
|
|
declareAlarmRoutes(cfg, apiRoutes)
|
2022-10-06 12:17:58 +00:00
|
|
|
declareAlarmsRoutes(cfg, db, resetTimer, apiRoutes)
|
2024-07-25 17:38:02 +00:00
|
|
|
declareFederationRoutes(cfg, apiRoutes)
|
2022-10-02 21:24:53 +00:00
|
|
|
declareGongsRoutes(cfg, apiRoutes)
|
|
|
|
declareHistoryRoutes(cfg, apiRoutes)
|
|
|
|
declareQuotesRoutes(cfg, apiRoutes)
|
|
|
|
declareRoutinesRoutes(cfg, apiRoutes)
|
|
|
|
declareTracksRoutes(cfg, apiRoutes)
|
|
|
|
declareSettingsRoutes(cfg, apiRoutes)
|
2022-10-01 17:37:12 +00:00
|
|
|
}
|