From cf7d6644f1df0dc19d4b2a1067a8473f53932d3b Mon Sep 17 00:00:00 2001 From: Kailash Nadh Date: Tue, 29 Oct 2024 10:17:05 +0530 Subject: [PATCH] Fix broken individual list GET API. Closes #2117. --- cmd/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/handlers.go b/cmd/handlers.go index b630ab1c..0c38adb2 100644 --- a/cmd/handlers.go +++ b/cmd/handlers.go @@ -156,7 +156,7 @@ func initHTTPHandlers(e *echo.Echo, app *App) { // Individual list permissions are applied directly within handleGetLists. api.GET("/api/lists", handleGetLists) - api.GET("/api/lists/:id", listPerm(handleGetLists)) + api.GET("/api/lists/:id", listPerm(handleGetList)) api.POST("/api/lists", pm(handleCreateList, "lists:manage_all")) api.PUT("/api/lists/:id", listPerm(handleUpdateList)) api.DELETE("/api/lists/:id", listPerm(handleDeleteLists))