diff --git a/CHANGELOG.md b/CHANGELOG.md index 7ac2b9b..8d36c7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `docs/streaming.md` — Streaming flow guide (3-step with real data) - `docs/examples.md` — Code examples in cURL, JavaScript, Python, Node.js (all tested) - `docs/architecture.md` — Project structure, tech stack, design decisions + +### Fixed +- Clean URLs: `/tos` and `/privacy` instead of `/tos.html` and `/privacy.html` +- Added Express routes for clean URL serving - `docs/architecture.md` — Project structure, tech stack, design decisions ### Fixed diff --git a/README.md b/README.md index c87b354..da4ef7b 100644 --- a/README.md +++ b/README.md @@ -292,11 +292,11 @@ AniKotoAPI/ ├── 📂 public/ # 🌐 Static files │ ├── 📄 index.html # 📖 Premium landing page (SVG icons, live console) │ ├── 📄 404.html # ❌ Custom 404 error page (glitch animation) -│ ├── 📄 tos.html # 📋 Terms of Service page -│ ├── 📄 privacy.html # 🔒 Privacy Policy page +│ ├── 📄 tos.html # 📋 Terms of Service (served at /tos) +│ ├── 📄 privacy.html # 🔒 Privacy Policy (served at /privacy) │ ├── 📄 manifest.json # 📱 PWA manifest (theme: #A855F7) │ ├── 📄 robots.txt # 🤖 Crawler directives -│ ├── 📄 sitemap.xml # 🗺️ Sitemap (4 pages) +│ ├── 📄 sitemap.xml # 🗺️ Sitemap (4 pages: /, /tos, /privacy, /api) │ ├── 📄 og-image.svg # 🖼️ SVG Open Graph image │ │ │ ├── 📂 docs/ # 📚 API documentation diff --git a/docs/architecture.md b/docs/architecture.md index 7ea15f4..d1d1c6c 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -14,10 +14,10 @@ AniKotoAPI/ │ ├── 404.html # Glitch animation error page │ ├── manifest.json # PWA manifest (theme: #A855F7) │ ├── robots.txt # Crawler directives -│ ├── sitemap.xml # 4 pages (home, api, privacy, tos) +│ ├── sitemap.xml # 4 pages (/, /tos, /privacy, /api) │ ├── og-image.svg # SVG Open Graph image -│ ├── privacy.html # Privacy policy -│ └── tos.html # Terms of service +│ ├── privacy.html # Privacy policy (served at /privacy) +│ └── tos.html # Terms of service (served at /tos) │ ├── docs/ # API documentation │ ├── index.md # Overview, quick start, features diff --git a/public/index.html b/public/index.html index 25bf9ed..6367ffe 100644 --- a/public/index.html +++ b/public/index.html @@ -538,8 +538,8 @@ fetch("https://anikototvapi.vercel.app/api")
- +