fix(ui): change tab names
fix(api): change api url
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user