old version placed
This commit is contained in:
11
apicalls/dashboard/menu.tsx
Normal file
11
apicalls/dashboard/menu.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
"use server";
|
||||
import { fetchDataWithToken } from "../api-fetcher";
|
||||
import { baseUrl } from "../basics";
|
||||
|
||||
const eventList = `${baseUrl}/event/list`;
|
||||
|
||||
async function retrieveEventList() {
|
||||
return await fetchDataWithToken(eventList, {}, "GET", false);
|
||||
}
|
||||
|
||||
export { retrieveEventList };
|
||||
Reference in New Issue
Block a user