Add new frontend - fix 20
This commit is contained in:
@@ -61,7 +61,7 @@ export class AuthService {
|
||||
*/
|
||||
async getCurrentUser(): Promise<UserProfile> {
|
||||
const response = await apiClient.get<UserProfile>('/users/me');
|
||||
return response.data!;
|
||||
return response;
|
||||
}
|
||||
|
||||
async register(userData: RegisterRequest): Promise<TokenResponse> {
|
||||
|
||||
@@ -56,6 +56,7 @@ export type {
|
||||
TenantStats,
|
||||
TenantUser,
|
||||
InviteUser,
|
||||
TenantInfo
|
||||
} from './tenantService';
|
||||
|
||||
// Create a unified API object for convenience
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// src/api/services/NotificationService.ts
|
||||
import { apiClient } from '../base/apiClient';
|
||||
import {
|
||||
ApiResponse,
|
||||
NotificationSettings
|
||||
ApiResponse
|
||||
} from '@/api/services';
|
||||
|
||||
export interface NotificationCreate {
|
||||
|
||||
@@ -112,7 +112,7 @@ export class TenantService {
|
||||
*/
|
||||
async registerBakery(bakeryData: TenantCreate): Promise<TenantInfo> {
|
||||
const response = await apiClient.post<TenantInfo>('/api/v1/tenants/register', bakeryData);
|
||||
return response.data!;
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -4,10 +4,6 @@ import {
|
||||
ApiResponse
|
||||
} from '../types/api';
|
||||
|
||||
import {
|
||||
ApiResponse
|
||||
} from '@/api/services';
|
||||
|
||||
export interface TrainingJobStatus {
|
||||
id: string;
|
||||
tenant_id: string;
|
||||
|
||||
Reference in New Issue
Block a user