Skip to content

Commit

Permalink
Move back to correct router
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkubi committed Apr 17, 2024
1 parent e94dccd commit 8ceffe8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions router/router.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,12 @@ func Configure(m *wserver.Manager, client remote.Client) *gin.Engine {
// and requests are authenticated through a JWT the panel issues to the other daemon.
router.POST("/api/transfers", postTransfers)

router.GET("/api/system/docker/disk", getDockerDiskUsage)

// All the routes beyond this mount will use an authorization middleware
// and will not be accessible without the correct Authorization header provided.
protected := router.Use(middleware.RequireAuthorization())
protected.POST("/api/update", postUpdateConfiguration)

protected.GET("/api/system", getSystemInformation)
protected.GET("/api/system/docker/disk", getDockerDiskUsage)
protected.GET("/api/system/ips", getSystemIps)
protected.GET("/api/system/utilization", getSystemUtilization)
protected.GET("/api/servers", getAllServers)
Expand Down

0 comments on commit 8ceffe8

Please sign in to comment.