Starting on working bookmarks api

This commit is contained in:
2022-06-27 09:01:36 -05:00
parent 4c37658cd8
commit 6fe79a1892
13 changed files with 652 additions and 58 deletions

View File

@@ -1,10 +1,6 @@
import auth0 from "../../lib/auth0";
import { withErrorHandling } from "../../lib/apiHelpers";
export default async function logout(req, res) {
try {
await auth0.handleLogout(req, res);
} catch (error) {
console.error(error);
res.status(error.status || 500).end(error.message);
}
}
export default logout = withErrorHandling(async (req, res) => {
await auth0.handleLogout(req, res);
});