feat: phase 3 website pages on v1 api

This commit is contained in:
Dwindi Ramadhana
2026-02-03 22:37:52 +07:00
parent 8816522ddd
commit b1aefa6b3d
13 changed files with 563 additions and 4 deletions

View File

@@ -34,7 +34,7 @@
- [x] Support both `q` and `query` inputs.
### Phase 3 - Website rebuild
- [ ] Build website pages in new app (index, emoji detail, api docs, legal pages).
- [x] Build website pages in new app (index, emoji detail, api docs, legal pages).
- [ ] Replace scaffold in `dewemoji-site` via new NativePHP output.
### Phase 4 - Extension integration
@@ -57,3 +57,10 @@
- Routes are now available at `/v1/*` (no `/api` prefix) for extension compatibility.
- License verification is currently environment-driven (`DEWEMOJI_LICENSE_ACCEPT_ALL` / `DEWEMOJI_PRO_KEYS`) as a safe stub before real provider integration.
- Test coverage added for `v1` endpoints in `app/tests/Feature/ApiV1EndpointsTest.php`.
## Implementation notes (Phase 3)
- Added website routes/pages in Laravel app:
- `/`, `/emoji/{slug}`, `/api-docs`, `/pricing`, `/privacy`, `/terms`
- Home page now consumes `/v1/categories` and `/v1/emojis` directly.
- Added page tests in `app/tests/Feature/SitePagesTest.php`.