Create new note in listing now working
This commit is contained in:
parent
93f9979259
commit
031a4e5259
3 changed files with 23 additions and 45 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue