Add collaborator page

This commit is contained in:
Thilo Hohlt
2024-08-05 19:33:35 +02:00
parent 62db2776a7
commit 9f948ba0d4
11 changed files with 470 additions and 173 deletions

View File

@@ -23,6 +23,7 @@
<nav class="operations__nav">
<a href="/website/{id}">Settings</a>
<a href="/website/{id}/articles">Articles</a>
<a href="/website/{id}/collaborators">Collaborators</a>
<a href="/website/{id}/publish">Publish</a>
</nav>

View File

@@ -5,7 +5,7 @@ import { ALLOWED_MIME_TYPES } from "../utils";
export const handleFileUpload = async (
file: File,
contentId: string,
websiteId: string,
userId: string,
session_token: string | undefined,
customFetch: typeof fetch
@@ -49,7 +49,7 @@ export const handleFileUpload = async (
Accept: "application/vnd.pgrst.object+json"
},
body: JSON.stringify({
website_id: contentId,
website_id: websiteId,
user_id: userId,
original_name: file.name,
file_system_path: relativePath