api-template now serves every application route under a /v1 prefix (ag-tech-group/api-template#21). web-template needs to catch up before it's pointed at an API generated from the updated template.
What changed upstream
| Before |
After |
/auth/register, /auth/jwt/login, /auth/jwt/logout, /auth/refresh, /auth/me |
/v1/auth/... |
/admin/users/{id}/role |
/v1/admin/users/{id}/role |
/notes, /notes/{id} |
/v1/notes, /v1/notes/{id} |
/flags |
/v1/flags |
/, /health, /docs, /openapi.json |
unchanged (infrastructure, stays unversioned) |
The refresh cookie is now scoped to path=/v1/auth/refresh.
To do
Not urgent — nothing breaks until web-template is pointed at an updated API — but worth doing before the next time someone scaffolds from these templates together.
api-template now serves every application route under a
/v1prefix (ag-tech-group/api-template#21). web-template needs to catch up before it's pointed at an API generated from the updated template.What changed upstream
/auth/register,/auth/jwt/login,/auth/jwt/logout,/auth/refresh,/auth/me/v1/auth/.../admin/users/{id}/role/v1/admin/users/{id}/role/notes,/notes/{id}/v1/notes,/v1/notes/{id}/flags/v1/flags/,/health,/docs,/openapi.jsonThe refresh cookie is now scoped to
path=/v1/auth/refresh.To do
pnpm generate-api) — paths in the generated hooks should pick up/v1automatically./flags(theFeatureFlagProvider),/auth/refresh,/auth/jwt/login,/auth/jwt/logout. The silent-refresh / logout flows are the most likely to be hand-written.server.proxyor equivalent) — if it proxies/auth,/notes, etc. to the API, update those prefixes to/v1(or just proxy/v1)./v1belongs in the base URL or in the generated paths (orval will put it in the paths).main.Not urgent — nothing breaks until web-template is pointed at an updated API — but worth doing before the next time someone scaffolds from these templates together.