refactor: apply consistent formatting to improve code quality
Ensure uniform code formatting across components by aligning with the established code style. Adjust imports, indentation, and spacing to enhance readability and maintainability.
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
import api from "@/lib/api";
|
||||
import type { User, UserProfile } from "@/types/user";
|
||||
import type { User } from "@/types/user";
|
||||
|
||||
export const UserService = {
|
||||
async getMe(): Promise<User> {
|
||||
const { data } = await api.get<User>("/users/me");
|
||||
return data;
|
||||
},
|
||||
async getMe(): Promise<User> {
|
||||
const { data } = await api.get<User>("/users/me");
|
||||
return data;
|
||||
},
|
||||
|
||||
async getProfile(username: string): Promise<User> {
|
||||
const { data } = await api.get<User>(`/users/public/${username}`);
|
||||
return data;
|
||||
},
|
||||
async getProfile(username: string): Promise<User> {
|
||||
const { data } = await api.get<User>(`/users/public/${username}`);
|
||||
return data;
|
||||
},
|
||||
|
||||
async updateMe(update: Partial<User>): Promise<User> {
|
||||
const { data } = await api.patch<User>("/users/me", update);
|
||||
return data;
|
||||
},
|
||||
async updateMe(update: Partial<User>): Promise<User> {
|
||||
const { data } = await api.patch<User>("/users/me", update);
|
||||
return data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user