mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 07:36:37 +08:00
refactor(backend): rename OpenFlare directory to lowercase openflare
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
// Copyright 2026 Arctel.net
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
package httpapi
|
||||
|
||||
import (
|
||||
"Wavelet/core"
|
||||
"Wavelet/core/contracts"
|
||||
"Wavelet/openflare/plugins/server/domain/option"
|
||||
"Wavelet/openflare/plugins/server/kernel/apiutil"
|
||||
)
|
||||
|
||||
func registerOptionRoutes(apiGroup core.RouterExtension, auth contracts.AuthService) {
|
||||
apiGroup.GET("/status", option.GetStatusHandler)
|
||||
|
||||
optionRoute := apiGroup.Group("/option")
|
||||
optionRoute.Use(apiutil.AdminMiddlewares(auth)...)
|
||||
{
|
||||
apiutil.RegisterCollection(optionRoute, "GET", option.ListOptionsHandler)
|
||||
optionRoute.POST("/update", option.UpdateOptionHandler)
|
||||
optionRoute.POST("/update-batch", option.UpdateOptionsBatchHandler)
|
||||
optionRoute.POST("/geoip/lookup", option.LookupGeoIPHandler)
|
||||
}
|
||||
|
||||
uptimeKumaRoute := apiGroup.Group("/uptimekuma")
|
||||
uptimeKumaRoute.Use(apiutil.AdminMiddlewares(auth)...)
|
||||
{
|
||||
uptimeKumaRoute.POST("/sync", option.SyncUptimeKumaHandler)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user