refactor(naming): harmonize service file names and API domain prefixes
- Rename hwclan.service.ts → hw-clan.service.ts, hwmember.service.ts → hw-member.service.ts (Angular Style Guide kebab-case) - Replace _apiVersion (/v1, /v2) with _apiDomain (/skydive, /cms, /herowars) across all feature services - Update herowars barrel to reference renamed files - Update CLAUDE.md to reflect corrected path examples
This commit is contained in:
@@ -34,11 +34,11 @@ Resolvers under [src/app/core/resolvers/](src/app/core/resolvers/) pre-fetch dat
|
||||
### HTTP pipeline
|
||||
|
||||
Three interceptors chained in order ([src/app/core/interceptors/](src/app/core/interceptors/)):
|
||||
1. `apiInterceptor` — prepends `environment.apiBaseUrl` to every request URL. **Consequence:** services call relative paths like `/v2/user`, never absolute URLs.
|
||||
1. `apiInterceptor` — prepends `environment.apiBaseUrl` to every request URL. **Consequence:** services call relative paths like `/cms/user`, never absolute URLs.
|
||||
2. `tokenInterceptor` — attaches `Authorization: Token <jwt>` when a token exists.
|
||||
3. `errorInterceptor` — unwraps `err.error` and rethrows.
|
||||
|
||||
`ApiService` ([api.service.ts](src/app/core/services/api.service.ts)) is a thin `HttpClient` wrapper; most feature services call it with a versioned prefix (e.g., `_apiDomain = '/v1'` or `/v2`). The API version is per-service, not global.
|
||||
`ApiService` ([api.service.ts](src/app/core/services/api.service.ts)) is a thin `HttpClient` wrapper; most feature services call it with a versioned prefix (e.g., `_apiDomain = '/skydive'` or `/cms`). The API version is per-service, not global.
|
||||
|
||||
### Auth flow
|
||||
|
||||
|
||||
Reference in New Issue
Block a user