mirror of
https://github.com/knadh/listmonk.git
synced 2024-12-26 00:42:58 +08:00
Fix broken individual list GET API. Closes #2117.
This commit is contained in:
parent
ca73e4f1dc
commit
cf7d6644f1
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue