mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 09:06:36 +08:00
fix lint
This commit is contained in:
@@ -12,15 +12,15 @@ func registerAgentRoutes(apiV1Router *gin.RouterGroup) {
|
||||
agentRoute := apiV1Router.Group("/agent")
|
||||
{
|
||||
discoveryRoute := agentRoute.Group("/")
|
||||
discoveryRoute.Use(agent.AgentRegisterAuth())
|
||||
discoveryRoute.Use(agent.RegisterAuth())
|
||||
{
|
||||
discoveryRoute.POST("/nodes/register", agent.RegisterHandler)
|
||||
}
|
||||
|
||||
authorizedRoute := agentRoute.Group("/")
|
||||
authorizedRoute.Use(agent.AgentAuth())
|
||||
authorizedRoute.Use(agent.Auth())
|
||||
{
|
||||
authorizedRoute.GET("/ws", agent.AgentWebSocketHandler)
|
||||
authorizedRoute.GET("/ws", agent.WebSocketHandler)
|
||||
authorizedRoute.POST("/nodes/heartbeat", agent.HeartbeatHandler)
|
||||
authorizedRoute.GET("/config-versions/active", agent.GetActiveConfigHandler)
|
||||
authorizedRoute.GET("/pages/deployments/:deployment_id/package", agent.DownloadPagesPackageHandler)
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
func registerRelayRoutes(apiV1Router *gin.RouterGroup) {
|
||||
relayRoute := apiV1Router.Group("/relay")
|
||||
relayRoute.Use(relay.RelayAuth())
|
||||
relayRoute.Use(relay.Auth())
|
||||
{
|
||||
relayRoute.POST("/heartbeat", relay.PostHeartbeat)
|
||||
relayRoute.GET("/ws", relay.GetWebSocket)
|
||||
|
||||
Reference in New Issue
Block a user