mirror of
https://github.com/alireza0/x-ui.git
synced 2026-03-14 05:23:09 +00:00
@@ -230,6 +230,10 @@ func (s *Server) initRouter() (*gin.Engine, error) {
|
||||
s.xui = controller.NewXUIController(g)
|
||||
s.api = controller.NewAPIController(g, s.server)
|
||||
|
||||
engine.NoRoute(func(c *gin.Context) {
|
||||
c.AbortWithStatus(http.StatusNotFound)
|
||||
})
|
||||
|
||||
return engine, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user