mirror of
https://github.com/Shineii86/AniKotoAPI.git
synced 2026-10-22 19:05:11 +00:00
fix: clean URLs — /tos and /privacy instead of /tos.html and /privacy.html
- Added Express routes for /tos and /privacy - Updated all internal links (index.html, privacy.html, tos.html) - Updated sitemap.xml URLs - Updated README and docs architecture
This commit is contained in:
@@ -74,6 +74,19 @@ app.use((req, res, next) => {
|
||||
// NOTE: redirect: false prevents automatic redirects to index.html
|
||||
app.use(express.static(publicDir, { redirect: false }));
|
||||
|
||||
// ══════════════════════════════════════════════════════════════
|
||||
// CLEAN URL ROUTES
|
||||
// ══════════════════════════════════════════════════════════════
|
||||
|
||||
// Serve HTML files without .html extension
|
||||
app.get("/tos", (req, res) => {
|
||||
res.sendFile(path.join(publicDir, "tos.html"));
|
||||
});
|
||||
|
||||
app.get("/privacy", (req, res) => {
|
||||
res.sendFile(path.join(publicDir, "privacy.html"));
|
||||
});
|
||||
|
||||
// ══════════════════════════════════════════════════════════════
|
||||
// RESPONSE HELPERS
|
||||
// ══════════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user