refactor(api): 统一将/story/路径修改为/api/story/
All checks were successful
test/timeline-frontend/pipeline/head This commit looks good
All checks were successful
test/timeline-frontend/pipeline/head This commit looks good
修改服务端API路径前缀以保持一致性,涉及前端请求、nginx配置和代理设置
This commit is contained in:
@@ -94,7 +94,7 @@ self.addEventListener('fetch', (event) => {
|
||||
*/
|
||||
function isApiRequest(url) {
|
||||
return url.pathname.startsWith('/api/') ||
|
||||
url.pathname.startsWith('/story/') ||
|
||||
url.pathname.startsWith('/api/story/') ||
|
||||
url.pathname.startsWith('/file/') ||
|
||||
url.pathname.startsWith('/user/');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user