deskripsi:
- pindah lib di dalam app ke src ( lib setara app dan app_modules )
This commit is contained in:
2025-02-12 10:57:10 +08:00
parent 8651357a3d
commit f419559379
904 changed files with 1129 additions and 1072 deletions

View File

@@ -0,0 +1,10 @@
export const API_RouteEvent = {
get_all: ({ page }: { page: number }) => `/api/event/get-all?page=${page}`,
get_one_by_id: ({ eventId }: { eventId: string }) =>
`/api/event/get-one-by-id?eventId=${eventId}`,
check_kehadiran: ({ eventId, userId }: { eventId: string; userId: string }) =>
`/api/event/check-kehadiran?eventId=${eventId}&userId=${userId}`,
check_peserta: ({ eventId, userId }: { eventId: string; userId: string }) =>
`/api/event/check-peserta?eventId=${eventId}&userId=${userId}`,
list_peserta: ({ eventId, page }: { eventId: string, page: number }) => `/api/event/list-peserta?eventId=${eventId}&page=${page}`,
};

View File

@@ -0,0 +1,4 @@
export const API_RouteJob = {
get_all: ({ page, search }: { page: number; search?: string }) =>
`/api/job/get-all?page=${page}&search=${search || ""}`,
};

View File

@@ -0,0 +1,15 @@
import { ICategoryapp } from "@/app_modules/notifikasi/model/interface";
export const API_RouteNotifikasi = {
get_all_by_category: ({
category,
page,
}: {
category: ICategoryapp;
page: number;
}) => `/api/notifikasi/get-all-by-category?category=${category}&page=${page}`,
get_master_kategori: () => `/api/notifikasi/master`,
get_count_by_id: () => `/api/notifikasi/count`,
};