website refactor
This commit is contained in:
@@ -16,6 +16,7 @@ export interface BaseApiClientOptions {
|
||||
timeout?: number;
|
||||
retry?: boolean;
|
||||
retryConfig?: typeof DEFAULT_RETRY_CONFIG;
|
||||
allowUnauthenticated?: boolean;
|
||||
}
|
||||
|
||||
export class BaseApiClient {
|
||||
|
||||
@@ -28,7 +28,7 @@ export class DriversApiClient extends BaseApiClient {
|
||||
|
||||
/** Get current driver (based on session) */
|
||||
getCurrent(): Promise<GetDriverOutputDTO | null> {
|
||||
return this.get<GetDriverOutputDTO | null>('/drivers/current');
|
||||
return this.get<GetDriverOutputDTO | null>('/drivers/current', { allowUnauthenticated: true });
|
||||
}
|
||||
|
||||
/** Get driver registration status for a specific race */
|
||||
|
||||
Reference in New Issue
Block a user