mirror of
https://github.com/Shineii86/AniKotoAPI.git
synced 2026-10-22 02:45:10 +00:00
fix: serve static files from public/ before server.js catch-all
- API routes (/api/*) still go to server.js - All other routes serve from /public/ directory - Fixes privacy.html, tos.html, manifest.json, robots.txt, sitemap.xml, og-image.svg
This commit is contained in:
+5
-1
@@ -8,11 +8,15 @@
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"src": "/api/(.*)",
|
||||
"dest": "server.js",
|
||||
"headers": {
|
||||
"Access-Control-Allow-Origin": "*"
|
||||
}
|
||||
},
|
||||
{
|
||||
"src": "/(.*)",
|
||||
"dest": "/public/$1"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user