重构连接监听与处理代码逻辑,连接信息存储于全局通过接口展示
This commit is contained in:
@@ -7,6 +7,10 @@ import (
|
||||
|
||||
func Router(r *fiber.App) {
|
||||
var debug = r.Group("/debug")
|
||||
debug.Get("/debug/consuming/list", handlers.GetConsuming)
|
||||
debug.Get("/debug/consuming/reset", handlers.RestConsuming)
|
||||
debug.Get("/info", handlers.Info)
|
||||
debug.Get("/consuming/list", handlers.GetConsuming)
|
||||
debug.Get("/consuming/reset", handlers.RestConsuming)
|
||||
|
||||
var api = r.Group("/api")
|
||||
api.Post("/permit", handlers.Permit)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user