diff --git a/internal/api/api.go b/internal/api/api.go index b4e4081..56c2827 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -62,7 +62,7 @@ func Listen(parentLogger *slog.Logger, readme []byte) { router.Route("/api", func(r chi.Router) { r.Use(tokenAuthMiddleware) r.Get(`/state/{entityId}`, getEntityStateHandler) - r.Post("/api/state/{entityId}/{service}", setEntityStateHandler) + r.Post("/state/{entityId}/{service}", setEntityStateHandler) r.Get("/timer/{timerName}", getTimerHandler) r.Post("/timer/{timerName}", startTimerHandler)