You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
536 B
15 lines
536 B
import apiClient from "@/api/client";
|
|
import { AUTH } from "@/api/endpoints";
|
|
import { User } from "@/model/User";
|
|
import { AbstractService as AbstractAPIService } from "../abstract.service";
|
|
import { IUserService } from "./user.service.interface";
|
|
|
|
export class UserAPIService extends AbstractAPIService implements IUserService {
|
|
async login(email: string, password: string): Promise<User> {
|
|
return this.request(async () => {
|
|
const response = await apiClient.get(AUTH.LOGIN);
|
|
return response.data.data;
|
|
});
|
|
}
|
|
}
|