settings.go 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package middleware
  2. type UrlInfo struct {
  3. Url string
  4. Method string
  5. }
  6. // CasbinExclude casbin 排除的路由列表
  7. var CasbinExclude = []UrlInfo{
  8. {Url: "/api/v1/dict/type-option-select", Method: "GET"},
  9. {Url: "/api/v1/dict-data/option-select", Method: "GET"},
  10. {Url: "/api/v1/deptTree", Method: "GET"},
  11. {Url: "/api/v1/db/tables/page", Method: "GET"},
  12. {Url: "/api/v1/db/columns/page", Method: "GET"},
  13. {Url: "/api/v1/gen/toproject/:tableId", Method: "GET"},
  14. {Url: "/api/v1/gen/todb/:tableId", Method: "GET"},
  15. {Url: "/api/v1/gen/tabletree", Method: "GET"},
  16. {Url: "/api/v1/gen/preview/:tableId", Method: "GET"},
  17. {Url: "/api/v1/gen/apitofile/:tableId", Method: "GET"},
  18. {Url: "/api/v1/getCaptcha", Method: "GET"},
  19. {Url: "/api/v1/getinfo", Method: "GET"},
  20. {Url: "/api/v1/menuTreeselect", Method: "GET"},
  21. {Url: "/api/v1/menurole", Method: "GET"},
  22. {Url: "/api/v1/menuids", Method: "GET"},
  23. {Url: "/api/v1/roleMenuTreeselect/:roleId", Method: "GET"},
  24. {Url: "/api/v1/roleDeptTreeselect/:roleId", Method: "GET"},
  25. {Url: "/api/v1/refresh_token", Method: "GET"},
  26. {Url: "/api/v1/configKey/:configKey", Method: "GET"},
  27. {Url: "/api/v1/app-config", Method: "GET"},
  28. {Url: "/api/v1/user/profile", Method: "GET"},
  29. {Url: "/info", Method: "GET"},
  30. {Url: "/api/v1/login", Method: "POST"},
  31. {Url: "/api/v1/logout", Method: "POST"},
  32. {Url: "/api/v1/user/avatar", Method: "POST"},
  33. {Url: "/api/v1/user/pwd", Method: "PUT"},
  34. {Url: "/api/v1/metrics", Method: "GET"},
  35. {Url: "/api/v1/health", Method: "GET"},
  36. {Url: "/", Method: "GET"},
  37. {Url: "/api/v1/server-monitor", Method: "GET"},
  38. {Url: "/api/v1/public/uploadFile", Method: "POST"},
  39. {Url: "/api/v1/user/pwd/set", Method: "PUT"},
  40. {Url: "/api/v1/sys-user", Method: "PUT"},
  41. }