u
This commit is contained in:
1 parent
513a991b57
commit
8f8e8d03c8
22 files changed
+2212
-213
No files matched your search
@@ -4,7 +4,9 @@ import (
|
||||
"allapp-go/internal/config"
|
||||
"allapp-go/internal/handle"
|
||||
"allapp-go/internal/middleware"
|
||||
"allapp-go/internal/ws"
|
||||
|
||||
"github.com/gofiber/contrib/v3/websocket"
|
||||
"github.com/gofiber/fiber/v3"
|
||||
)
|
||||
|
||||
@@ -15,6 +17,7 @@ func SetupRouter(app *fiber.App, cfg *config.Config) {
|
||||
data := api.Group("/data", middleware.Auth())
|
||||
|
||||
data.Post("/loadData", handle.LoadData)
|
||||
data.Post("/loadDataPage", handle.LoadDataPage)
|
||||
data.Post("/loadDataBySql", handle.LoadDataBySql)
|
||||
data.Post("/saveData", handle.SaveData)
|
||||
data.Post("/getUniqueId", handle.GetUniqueId)
|
||||
@@ -31,4 +34,8 @@ func SetupRouter(app *fiber.App, cfg *config.Config) {
|
||||
bind := api.Group("/bind", middleware.Auth())
|
||||
bind.Post("/qq", handle.BindQq)
|
||||
bind.Post("/wechat", handle.BindWechat)
|
||||
|
||||
// ==================== chat ====================
|
||||
chat := api.Group("/chat")
|
||||
chat.Get("/ws", ws.AuthWS(), websocket.New(ws.HandleWebSocket))
|
||||
}
|
||||
Reference in new issue
Block a user