MVP ready to test

This commit is contained in:
Timo Knuth
2025-10-28 17:20:37 +01:00
parent 91b78cb284
commit 2f0208ebf9
48 changed files with 6258 additions and 110 deletions

View File

@@ -29,9 +29,9 @@ export function useCsrf() {
* Helper function to add CSRF token to fetch headers
*/
const getHeaders = (additionalHeaders: HeadersInit = {}) => {
const headers: HeadersInit = {
const headers: Record<string, string> = {
'Content-Type': 'application/json',
...additionalHeaders,
...(additionalHeaders as Record<string, string>),
};
if (csrfToken) {