mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 02:15:48 +02:00
feat: mcp server
This commit is contained in:
parent
c4a9d03bb3
commit
e8ee931e16
51 changed files with 2749 additions and 1526 deletions
|
@ -26,6 +26,7 @@ import (
|
|||
"github.com/0xJacky/Nginx-UI/api/upstream"
|
||||
"github.com/0xJacky/Nginx-UI/api/user"
|
||||
"github.com/0xJacky/Nginx-UI/internal/middleware"
|
||||
"github.com/0xJacky/Nginx-UI/mcp"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/uozi-tech/cosy"
|
||||
cSettings "github.com/uozi-tech/cosy/settings"
|
||||
|
@ -44,6 +45,8 @@ func InitRouter() {
|
|||
})
|
||||
})
|
||||
|
||||
mcp.InitRouter(r)
|
||||
|
||||
root := r.Group("/api", middleware.IPWhiteList())
|
||||
{
|
||||
public.InitRouter(root)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue