Skip to content

Release: research into main (remove pre-2.0 API, #107) - #108

Merged
LEVELING2108 merged 2 commits into
mainfrom
research
Nov 13, 2026
Merged

LEVELING2108 merged 2 commits into
mainfrom
research

Conversation

@LEVELING2108

Copy link
Copy Markdown
Owner

Brings #107 to main: removes the unused pre-2.0 API routes and stops /api/v1 accepting their 7-day tokens. Verified live from research: old routes return 404, /api/v1 and /api/health work, login, Explore, Plan and SOS checked on a phone. Tests 147/147.

The old routes (/api/places, /api/events, /api/itinerary, /api/user,
/api/weather; 17 endpoints) were still mounted although nothing calls
them: the web app and Android build use /api/v1 only, and the server
log since the last deploy shows 176 /api/v1 calls and none to the old
routes. They were also a security gap:
- /api/user/login issued 7-day tokens that /api/v1 accepted, so they
  outlived sign-out, password reset and session revocation
- /api/user/register skipped validation and terms consent, gave 150 XP

Removed the routes, their controllers, the old auth middleware and rate
limits, config/jwt.ts and the unused Overpass service; verifyAccessToken
no longer accepts { id } tokens. WEATHER_API_KEY and GEMINI_API_KEY are
no longer read. /api/health stays. BACKEND.md now documents /api/v1.

Tests: old routes return 404, an old-style token is refused while a new
login works, /api/health still answers; API suite 147/147.
chore(api): remove the pre-2.0 API and its 7-day login tokens
@LEVELING2108
LEVELING2108 merged commit fa5e8d2 into main Nov 13, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant