mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-20 14:25:07 +00:00
Merge branch 'html' of https://github.com/akihikodaki/sapper into akihikodaki-html
This commit is contained in:
@@ -329,12 +329,10 @@ export function get_page_handler(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!server_routes.some(route => route.pattern.test(req.path))) {
|
for (const page of pages) {
|
||||||
for (const page of pages) {
|
if (page.pattern.test(req.path)) {
|
||||||
if (page.pattern.test(req.path)) {
|
handle_page(page, req, res);
|
||||||
handle_page(page, req, res);
|
return;
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user