Working on create resource

This commit is contained in:
Owen Schwartz 2024-10-19 17:28:46 -04:00
parent 091d649997
commit 1fd18a1ef9
No known key found for this signature in database
GPG key ID: 8271FDFFD9E0CCBD
2 changed files with 2 additions and 2 deletions

View file

@ -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 = {

View file

@ -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;