Fix broken individual list GET API. Closes #2117.

This commit is contained in:
Kailash Nadh 2024-10-29 10:17:05 +05:30
parent ca73e4f1dc
commit cf7d6644f1

View file

@ -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))