Added logout API

This commit is contained in:
Luis Alvarez
2020-10-22 18:02:41 -05:00
parent f81c507157
commit b81d04b952
5 changed files with 68 additions and 1 deletions

View File

@@ -18,6 +18,12 @@ module.exports = {
source: '/checkout',
destination: '/api/bigcommerce/checkout',
},
// The logout is also an action so this route is not required, but it's also another way
// you can allow a logout!
{
source: '/logout',
destination: '/api/bigcommerce/customers/logout?redirect_to=/',
},
]
},
}