convert API call function to TS
This commit is contained in:
1 parent
e73d607ac3
commit
4325fe3dcb
21 files changed
+38
-59
No files matched your search
@@ -0,0 +1,5 @@
|
||||
import fetchWrapper from "../fetchWrapper";
|
||||
|
||||
export default async function GetEventById(id:number) {
|
||||
return fetchWrapper(`/api/events/${id}`, null, "GET");
|
||||
}
|
||||
Reference in new issue
Block a user