Skip to content

3.实现路由分发,根据 urlPath 拼接本地页面真实路径 #3

Description

@yan070413

描述:
根据访问路径分支判断:
1.访问根路径/映射 index.html;
2.精确匹配/publishing.html;
3.匹配以/detail开头的所有路径统一指向 detail.html;
4.其余路径截取首字符斜杠,拼接静态资源根目录 WEB_ROOT,生成目标文件路径 targetFile。
待完成:
[ √ ] 多分支 if 路由判断代码
[ √ ] urlPath 字符串截取处理
[ √ ] 定义静态页面根目录常量 WEB_ROOT

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions