mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-10 17:26:38 +08:00
migrate
This commit is contained in:
@@ -20,7 +20,7 @@ func RegisterRoutes(apiGroup *gin.RouterGroup) {
|
||||
apiGroup.GET("/about", getAboutHandler)
|
||||
|
||||
optionRoute := apiGroup.Group("/option")
|
||||
optionRoute.Use(compat.BridgeOpenFlareToken(), compat.RootAuth())
|
||||
optionRoute.Use(compat.RootAuth())
|
||||
{
|
||||
optionRoute.GET("/", listOptionsHandler)
|
||||
optionRoute.POST("/update", updateOptionHandler)
|
||||
@@ -30,7 +30,7 @@ func RegisterRoutes(apiGroup *gin.RouterGroup) {
|
||||
}
|
||||
|
||||
uptimeKumaRoute := apiGroup.Group("/uptimekuma")
|
||||
uptimeKumaRoute.Use(compat.BridgeOpenFlareToken(), compat.RootAuth())
|
||||
uptimeKumaRoute.Use(compat.RootAuth())
|
||||
{
|
||||
uptimeKumaRoute.POST("/sync", syncUptimeKumaHandler)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user