mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-17 02:16:38 +00:00
Working on create resource
This commit is contained in:
@@ -11,7 +11,7 @@ import logger from '@server/logger';
|
||||
|
||||
// Define Zod schema for request parameters validation
|
||||
const getResourceSchema = z.object({
|
||||
resourceId: z.string().uuid()
|
||||
resourceId: z.string()
|
||||
});
|
||||
|
||||
export type GetResourceResponse = {
|
||||
|
||||
@@ -34,7 +34,7 @@ export default async function SettingsLayout({
|
||||
if (params.resourceId !== "create") {
|
||||
try {
|
||||
const res = await internal.get<AxiosResponse<GetResourceResponse>>(
|
||||
`/org/${params.orgId}/resource/${params.resourceId}`,
|
||||
`/resource/${params.resourceId}`,
|
||||
authCookieHeader(),
|
||||
);
|
||||
resource = res.data.data;
|
||||
|
||||
Reference in New Issue
Block a user