Api changes

This commit is contained in:
Owen Schwartz
2024-10-19 18:47:41 -04:00
parent 94da55450e
commit 0fa3382cda
20 changed files with 319 additions and 154 deletions

View File

@@ -11,11 +11,11 @@ type ResourcesPageProps = {
export default async function Page({ params }: ResourcesPageProps) {
let resources: ListResourcesResponse["resources"] = [];
try {
// const res = await internal.get<AxiosResponse<ListResourcesResponse>>(
// `/org/${params.orgId}/resources`,
// authCookieHeader(),
// );
// resources = res.data.data.resources;
const res = await internal.get<AxiosResponse<ListResourcesResponse>>(
`/org/${params.orgId}/resources`,
authCookieHeader(),
);
resources = res.data.data.resources;
} catch (e) {
console.error("Error fetching resources", e);
}