Package com.bytedesk.starter.controller
Class PageRouteController
java.lang.Object
com.bytedesk.starter.controller.PageRouteController
Controller for "/".
- Author:
- jackning
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadmin()
admin 管理后台 http://127.0.0.1:9003/adminagent web聊天/客服端 http://127.0.0.1:9003/agentagenticflow
(String path, String path2) chat()
chatDemo
(org.springframework.ui.Model model) visitor 访客对话窗口 http://127.0.0.1:9003/chat/demodocusaurus 文档 支持多语言路径:/docs, /docs/zh-CN, /docs/zh-TW http://127.0.0.1:9003/docshandlePageRoutes
(String page, org.springframework.ui.Model model) http://127.0.0.1:9003/download http://127.0.0.1:9003/privacy http://127.0.0.1:9003/termshome
(org.springframework.ui.Model model) 微语首页 http://127.0.0.1:9003 http://127.0.0.1:9003/homeiframe()
kanban 看板 http://127.0.0.1:9003/kanbannotebase - React SPA http://127.0.0.1:9003/notebase/spaces 注意: 1.web
(org.springframework.ui.Model model) http://127.0.0.1:9003/web
-
Field Details
-
showDemo
-
customEnabled
-
customName
-
customLogo
-
customDescription
@Value("${bytedesk.custom.description:\u91cd\u590d\u5de5\u4f5c\u81ea\u52a8\u5316}") private String customDescription
-
-
Constructor Details
-
PageRouteController
public PageRouteController()
-
-
Method Details
-
home
微语首页 http://127.0.0.1:9003 http://127.0.0.1:9003/home -
web
http://127.0.0.1:9003/web -
docs
@GetMapping({"/docs","/docs/","/docs/{lang:zh-CN|zh-TW}","/docs/{lang:zh-CN|zh-TW}/","/docs/{path:[^\\.]*}","/docs/{path:[^\\.]*}/{path2:[^\\.]*}","/docs/{lang:zh-CN|zh-TW}/{path:[^\\.]*}","/docs/{lang:zh-CN|zh-TW}/{path:[^\\.]*}/{path2:[^\\.]*}"}) public String docs(@PathVariable(required=false) String lang, @PathVariable(required=false) String path, @PathVariable(required=false) String path2) docusaurus 文档 支持多语言路径:/docs, /docs/zh-CN, /docs/zh-TW http://127.0.0.1:9003/docs -
admin
@GetMapping({"/admin","/admin/","/admin/{path:[^\\.]*}","/admin/{path:[^\\.]*}/{path2:[^\\.]*}","/admin/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}","/admin/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}/{path4:[^\\.]*}"}) public String admin()admin 管理后台 http://127.0.0.1:9003/admin -
agent
@GetMapping({"/agent","/agent/","/agent/{path:[^\\.]*}","/agent/{path:[^\\.]*}/{path2:[^\\.]*}","/agent/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}","/agent/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}/{path4:[^\\.]*}"}) public String agent(@PathVariable(required=false) String path) agent web聊天/客服端 http://127.0.0.1:9003/agent -
chatDemo
visitor 访客对话窗口 http://127.0.0.1:9003/chat/demo -
chat
@GetMapping({"/chat","/chat/","/chat/{path:[^\\.]*}","/chat/{path:[^\\.]*}/{path2:[^\\.]*}","/chat/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}","/chat/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}/{path4:[^\\.]*}"}) public String chat() -
iframe
-
agenticflow
@GetMapping({"/agenticflow","/agenticflow/","/agenticflow/{path:[^\\.]*}","/agenticflow/{path:[^\\.]*}/{path2:[^\\.]*}","/agenticflow/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}","/agenticflow/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}/{path4:[^\\.]*}"}) public String agenticflow(@PathVariable(required=false) String path, @PathVariable(required=false) String path2) -
notebase
@GetMapping({"/notebase","/notebase/","/notebase/{path:[^\\.]*}","/notebase/{path:[^\\.]*}/{path2:[^\\.]*}","/notebase/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}","/notebase/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}/{path4:[^\\.]*}"}) public String notebase(@PathVariable(required=false) String path, @PathVariable(required=false) String path2) notebase - React SPA http://127.0.0.1:9003/notebase/spaces 注意: 1. 静态资源请求(包含.的路径)会被 Spring 的资源处理器处理 2. 其他所有路径都转发到 index.html,由 React Router 处理 -
kanban
@GetMapping({"/kanban","/kanban/","/kanban/{path:[^\\.]*}","/kanban/{path:[^\\.]*}/{path2:[^\\.]*}","/kanban/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}","/kanban/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}/{path4:[^\\.]*}"}) public String kanban(@PathVariable(required=false) String path, @PathVariable(required=false) String path2) kanban 看板 http://127.0.0.1:9003/kanban -
reactdemo
@GetMapping({"/reactdemo","/reactdemo/","/reactdemo/{path:[^\\.]*}","/reactdemo/{path:[^\\.]*}/{path2:[^\\.]*}","/reactdemo/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}","/reactdemo/{path:[^\\.]*}/{path2:[^\\.]*}/{path3:[^\\.]*}/{path4:[^\\.]*}"}) public String reactdemo(@PathVariable(required=false) String path, @PathVariable(required=false) String path2) -
handlePageRoutes
@GetMapping({"/{page:download|contact|about|privacy|terms|office}","/{page:download|contact|about|privacy|terms|office}.html"}) public String handlePageRoutes(@PathVariable String page, org.springframework.ui.Model model) http://127.0.0.1:9003/download http://127.0.0.1:9003/privacy http://127.0.0.1:9003/terms
-