mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-05-13 17:39:41 +00:00
feat: implement self-hosted scripts and agent binary proxy with tar.gz conversion
This commit is contained in:
@@ -60,6 +60,9 @@ func routers(r *gin.Engine, frontendDist fs.FS) {
|
||||
api.POST("/login", authMiddleware.LoginHandler)
|
||||
api.GET("/oauth2/:provider", commonHandler(oauth2redirect))
|
||||
|
||||
r.GET("/script/:name", serveScript)
|
||||
r.GET("/script/bin/:os/:arch", serveAgentBinary)
|
||||
|
||||
fallbackAuthMw := fallbackAuthMiddleware(authMiddleware)
|
||||
fallbackAuth := api.Group("", fallbackAuthMw)
|
||||
fallbackAuth.GET("/setting", commonHandler(listConfig))
|
||||
@@ -83,7 +86,6 @@ func routers(r *gin.Engine, frontendDist fs.FS) {
|
||||
|
||||
auth.GET("/refresh-token", authMiddleware.RefreshHandler)
|
||||
|
||||
|
||||
auth.GET("/file", commonHandler(createFM))
|
||||
auth.GET("/ws/file/:id", commonHandler(fmStream))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user