Initial commit
This commit is contained in:
Executable
+9
@@ -0,0 +1,9 @@
|
||||
import {http} 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);
|
||||
Reference in New Issue
Block a user