handle: function handle()

in src/backend-global.js [34:43]


      handle: function handle(ctx) {
        const {name} = ctx.settings;
        const body = ctx.request.json();
        ctx.globalStorage.extensionProperties.demoString1 = body.val1;
        ctx.globalStorage.extensionProperties.demoString2 = body.val2;
        // eslint-disable-next-line no-console
        console.log('Updated storage', body);

        ctx.response.json({test: true, name, scope: 'global', method: 'POST', receiveBody: body});
      }