fix(ui): change tab names

fix(api): change api url
This commit is contained in:
shafin-r
2026-01-17 18:37:37 +06:00
parent 16dffe6ffd
commit 61061001f9
13 changed files with 501 additions and 50 deletions

View File

@ -1,4 +1,4 @@
const API_URL = "https://dsat-api.edbridgescholars.com";
const API_URL = "https://ed-dev-api.omukk.dev";
export interface LoginRequest {
email: string;
@ -27,25 +27,6 @@ export interface ApiError {
message?: string;
}
export interface PracticeSheet {
title: string;
subject: string;
difficulty: string;
time_limit: number;
description: string;
topics: string[];
is_locked: boolean;
id: string;
created_at: string;
created_by: {
id: string;
name: string;
email: string;
};
modules: string[];
modules_count: number;
}
class ApiClient {
private baseURL: string;
@ -128,6 +109,10 @@ class ApiClient {
token
);
}
async getSatDates(token: string): Promise<any> {
return this.authenticatedRequest<any>(`/sat-dates/`, token);
}
}
export const api = new ApiClient(API_URL);