1
0
Fork 0

Missed an /api removal

main
Jordan Hotmann 2023-11-20 15:01:50 -07:00
parent df393879ac
commit a7130653c6
No known key found for this signature in database
GPG Key ID: 01B504170C2A2EA3
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ func Listen(parentLogger *slog.Logger, readme []byte) {
router.Route("/api", func(r chi.Router) { router.Route("/api", func(r chi.Router) {
r.Use(tokenAuthMiddleware) r.Use(tokenAuthMiddleware)
r.Get(`/state/{entityId}`, getEntityStateHandler) r.Get(`/state/{entityId}`, getEntityStateHandler)
r.Post("/api/state/{entityId}/{service}", setEntityStateHandler) r.Post("/state/{entityId}/{service}", setEntityStateHandler)
r.Get("/timer/{timerName}", getTimerHandler) r.Get("/timer/{timerName}", getTimerHandler)
r.Post("/timer/{timerName}", startTimerHandler) r.Post("/timer/{timerName}", startTimerHandler)