diff --git a/app/action/start.go b/app/action/start.go index 81b2d0c..29518a5 100644 --- a/app/action/start.go +++ b/app/action/start.go @@ -159,6 +159,15 @@ func readonlyMiddleware() echo.MiddlewareFunc { // fine return next(c) } + + // certain POST requests should also be allowed + if method == "POST" { + path := c.Request().URL.Path + if path == "/api/stream/track" { + return next(c) + } + } + return echo.NewHTTPError(http.StatusMethodNotAllowed) } }