Event on next alarm reached
This commit is contained in:
parent
9a06d04ce0
commit
fffdccc7b8
3 changed files with 58 additions and 18 deletions
|
@ -7,11 +7,11 @@ import (
|
|||
"git.nemunai.re/nemunaire/reveil/model"
|
||||
)
|
||||
|
||||
func DeclareRoutes(router *gin.Engine, cfg *config.Config, db *reveil.LevelDBStorage) {
|
||||
func DeclareRoutes(router *gin.Engine, cfg *config.Config, db *reveil.LevelDBStorage, resetTimer func()) {
|
||||
apiRoutes := router.Group("/api")
|
||||
|
||||
declareActionsRoutes(cfg, apiRoutes)
|
||||
declareAlarmsRoutes(cfg, db, apiRoutes)
|
||||
declareAlarmsRoutes(cfg, db, resetTimer, apiRoutes)
|
||||
declareGongsRoutes(cfg, apiRoutes)
|
||||
declareHistoryRoutes(cfg, apiRoutes)
|
||||
declareQuotesRoutes(cfg, apiRoutes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue