API – Investment (Admin & User)
- src/app/api/mobile/admin/investment/[id]/route.ts - src/app/api/mobile/admin/investment/[id]/invoice/route.ts - src/app/api/mobile/investment/[id]/invoice/route.ts - src/app/api/mobile/investment/[id]/document/route.ts Routing Helper - src/lib/mobile/route-page-mobile.ts ### No Issue
This commit is contained in:
@@ -21,8 +21,14 @@ const routeAdminMobile = {
|
||||
forumPreviewReportComment: `/admin/forum/report-comment`,
|
||||
|
||||
// INVESTMENT
|
||||
investmentByStatus: ({ status }: { status: StatusApp }) =>
|
||||
`/admin/investment/${status}/status`,
|
||||
investmentByStatus: ({ status }: { status: StatusApp }) => `/admin/investment/${status}/status`,
|
||||
investmentDetailPublish: ({
|
||||
id,
|
||||
status,
|
||||
}: {
|
||||
id: string;
|
||||
status: StatusApp;
|
||||
}) => `/admin/investment/${id}/${status}`,
|
||||
};
|
||||
|
||||
const routeUserMobile = {
|
||||
@@ -51,7 +57,8 @@ const routeUserMobile = {
|
||||
`/forum/${id}/preview-report-comment`,
|
||||
|
||||
// INVESTMENT
|
||||
investmentByStatus: ({ status }: { status?: StatusApp }) =>
|
||||
investmentPortofolioByStatus: ({ status }: { status?: StatusApp }) =>
|
||||
`/investment/(tabs)/portofolio?status=${status}`,
|
||||
investasiDetailPublish: ({ id }: { id: string }) => `/investment/${id}`,
|
||||
investasiTransaction: `/investment/(tabs)/transaction`
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user