feat: add user API service

This commit is contained in:
CREDO23 2025-12-15 11:58:10 +00:00
parent 42a585d880
commit 8c5ecfd4e4

View file

@ -0,0 +1,13 @@
import { getMeResponse } from "@/contracts/types/user.types";
import { baseApiService } from "./base-api.service";
class UserApiService {
/**
* Get current authenticated user
*/
getMe = async () => {
return baseApiService.get(`/users/me`, getMeResponse);
};
}
export const userApiService = new UserApiService();