something new
This commit is contained in:
@@ -1,9 +1,4 @@
|
||||
import {http} from "./api";
|
||||
import {get} from "./api";
|
||||
|
||||
export const fetchChar = (id: number) =>
|
||||
http.get(`characters/${id}`)
|
||||
.then(res => res.data.data);
|
||||
|
||||
export const fetchCharNovels = (id: number) =>
|
||||
http.get(`characters/${id}/novels`)
|
||||
.then(res => res.data.data);
|
||||
export const fetchChar = (id: number) => get(`characters/${id}`);
|
||||
export const fetchCharNovels = (id: number) => get(`characters/${id}/novels`);
|
||||
Reference in New Issue
Block a user