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:
@@ -2,13 +2,13 @@ import api from "@/lib/api";
|
||||
import type { Category } from "@/types/content";
|
||||
|
||||
export const CategoryService = {
|
||||
async getAll(): Promise<Category[]> {
|
||||
const { data } = await api.get<Category[]>("/categories");
|
||||
return data;
|
||||
},
|
||||
async getAll(): Promise<Category[]> {
|
||||
const { data } = await api.get<Category[]>("/categories");
|
||||
return data;
|
||||
},
|
||||
|
||||
async getOne(id: string): Promise<Category> {
|
||||
const { data } = await api.get<Category>(`/categories/${id}`);
|
||||
return data;
|
||||
},
|
||||
async getOne(id: string): Promise<Category> {
|
||||
const { data } = await api.get<Category>(`/categories/${id}`);
|
||||
return data;
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user