summaryrefslogtreecommitdiffstats
path: root/client/src/admin/api/logout.js
blob: b0a9841ac2b2e4d318fe5e3ccf912be011f3283f (plain) (blame)
1
2
3
4
5
6
7
export default () => (
  fetch('/api/user/logout', {
    method: 'POST',
  })
  .then(() => window.location.href = "/")
  .catch(() => {})
);