mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 10:51:36 +01:00
Add collaborator page
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user