diff --git a/templates/mellow-vue/api/controllers/user/logout.js b/templates/mellow-vue/api/controllers/user/logout.js index db27c00..fb5559a 100644 --- a/templates/mellow-vue/api/controllers/user/logout.js +++ b/templates/mellow-vue/api/controllers/user/logout.js @@ -6,12 +6,14 @@ module.exports = { inputs: {}, exits: { - success: {} + success: { + responseType: 'inertiaRedirect' + } }, fn: async function () { sails.inertia.flushShared('loggedInUser') delete this.req.session.userId - return sails.inertia.location('/') + return '/' } }