From a7130653c663f9a8f9a34f47985fe70e83ff25d8 Mon Sep 17 00:00:00 2001 From: Jordan Hotmann Date: Mon, 20 Nov 2023 15:01:50 -0700 Subject: [PATCH] Missed an /api removal --- internal/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)