diff --git a/backend/strapi/src/api/note/controllers/note.js b/backend/strapi/src/api/note/controllers/note.js index 20de73a..9cf8879 100644 --- a/backend/strapi/src/api/note/controllers/note.js +++ b/backend/strapi/src/api/note/controllers/note.js @@ -87,7 +87,8 @@ module.exports = createCoreController(noteUid, ({strapi}) => ({ */ async create(ctx) { const userId = ctx.state.user.id; - const requestBody = ctx.request.body; + const requestBody = JSON.parse(ctx.request.body); + console.log(requestBody); const response = await strapi.entityService.create(noteUid, { data: { title: requestBody.data.title, diff --git a/frontend/svelte/src/app.html b/frontend/svelte/src/app.html index 2767694..07daf74 100644 --- a/frontend/svelte/src/app.html +++ b/frontend/svelte/src/app.html @@ -4,9 +4,16 @@ + %sveltekit.head%