refactor: merge internal/sync into internal/garmin, regroup api files and routes
Garmin auth/sync routes move under /api/garmin/*; sync.Service becomes garmin.Sync with garmin.SyncConfig/ClientConfig; applog becomes internal/log; the test mock moves into the garmin package as MockClient (breaking the test-only import cycle the merge created); stale test URLs and type names updated to match. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -75,7 +75,7 @@ which falls back to this default.
|
||||
|
||||
### HTTP access log (`internal/api`)
|
||||
|
||||
A new `requestLoggingMiddleware`, registered as the **first** `r.Use(...)`
|
||||
A new `loggingMiddleware`, registered as the **first** `r.Use(...)`
|
||||
in `Router()` (ahead of `corsMiddleware`), so it wraps every request
|
||||
including unauthenticated ones (login redirect, health check) and OPTIONS
|
||||
preflights:
|
||||
|
||||
Reference in New Issue
Block a user