Skip to content

Commit

Permalink
chore: disable packages route for guests (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
freitzzz authored Dec 18, 2024
1 parent 2558182 commit 79735a0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions internal/http/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ func RegisterHandlers(e *echo.Echo) {
e.GET(networkIdActionsRoute, networkIdActionsHandler, adminRouteMiddleware)
e.POST(networkIdActionsRoute, networkIdActionsFormHandler, adminRouteMiddleware)

// /network/:id/connections | packages (public)
// /network/:id/connections
e.GET(networkIdRoute, networkIdHandler)
e.GET(networkIdConnectionsRoute, networkIdConnectionsHandler)
e.GET(networkIdPackagesRoute, networkIdPackagesHandler)

// network/:id/packages (admin only)
e.GET(networkIdPackagesRoute, networkIdPackagesHandler, adminRouteMiddleware)

// /network/:id/processes (admin only)
e.GET(networkIdProcessesRoute, networkIdProcessesHandler, adminRouteMiddleware)
Expand Down

0 comments on commit 79735a0

Please sign in to comment.