Update API routes and ui

This commit is contained in:
Owen
2025-12-17 11:58:25 -05:00
committed by Owen Schwartz
parent 79eefc0ac7
commit 35ea01610a
9 changed files with 160 additions and 58 deletions

View File

@@ -100,7 +100,7 @@ export default function ClientResourcesTable({
) => {
try {
await api
.delete(`/org/${orgId}/site/${siteId}/resource/${resourceId}`)
.delete(`/site-resource/${resourceId}`)
.then(() => {
startTransition(() => {
router.refresh();
@@ -327,6 +327,7 @@ export default function ClientResourcesTable({
setOpen={setIsEditDialogOpen}
resource={editingResource}
orgId={orgId}
sites={sites}
onSuccess={() => {
router.refresh();
setEditingResource(null);