1
1
mirror of https://github.com/aelve/guide.git synced 2024-12-26 06:11:33 +03:00
guide/front/client/service/Category.ts

22 lines
408 B
TypeScript
Raw Normal View History

2018-09-12 23:09:34 +03:00
import axios from "axios";
class CategoryService {
async getCategoryList(): Promise<ICategory[]> {
const { data } = await axios.get("api/categories", {})
return data
}
}
export interface ICategory {
created: string
group: string
status: string
title: string
uid: string
}
const categoryServiceInstance = new CategoryService()
export { categoryServiceInstance as CategoryService }