Support basePath in all queries.

This commit is contained in:
Mike Cao committed 2020-09-30 22:34:16 -07:00
1 parent 2508198a51
commit 5068ab12a9
11 files changed
+57 -29

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
import { serialize } from 'cookie';
import { AUTH_COOKIE_NAME } from 'lib/constants';
import { redirect } from 'lib/response';
import { ok } from 'lib/response';
export default async (req, res) => {
const cookie = serialize(AUTH_COOKIE_NAME, '', {
@@ -11,5 +11,5 @@ export default async (req, res) => {
res.setHeader('Set-Cookie', [cookie]);
return redirect(res, '/login');
return ok(res);
};