mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-30 14:26:36 +08:00
63cd906cfc
- Merge all files inside openflare-server to the repository root directory. - Relocate agent, relay, and flared subprojects from internal/ to internal/apps/. - Combine docker-compose files and update build context paths to root. - Update GitHub workflows and Dockerfiles to refer to new directories and package names. - Rewrite Go package imports across all files. - Resolve database renew test race condition and clean up docs.
17 lines
580 B
Go
17 lines
580 B
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
// Package openflare registers OpenFlare HTTP routes.
|
|
// Management console APIs are mounted via RegisterV1Routes under /api/v1/d.
|
|
// Agent/Relay/Tunnel protocol routes are mounted via RegisterRoutes under /api/v1.
|
|
package openflare
|
|
|
|
import "github.com/gin-gonic/gin"
|
|
|
|
// RegisterRoutes mounts Agent/Relay/Tunnel protocol routes under the /api/v1 group.
|
|
func RegisterRoutes(apiV1Router *gin.RouterGroup) {
|
|
registerAgentRoutes(apiV1Router)
|
|
registerRelayRoutes(apiV1Router)
|
|
registerTunnelRoutes(apiV1Router)
|
|
}
|