Working on create resource
This commit is contained in:
parent
091d649997
commit
1fd18a1ef9
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue