Converted admin, auth, me and realtime routes.
This commit is contained in:
1 parent
6c9f1ad06b
commit
5205551ca8
25 files changed
+346
-7
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import { getClient, redisEnabled } from '@umami/redis-client';
|
||||
import { ok } from 'lib/response';
|
||||
|
||||
export async function POST(request: Request) {
|
||||
if (redisEnabled) {
|
||||
const redis = getClient();
|
||||
|
||||
const token = request.headers.get('authorization')?.split(' ')?.[1];
|
||||
|
||||
await redis.del(token);
|
||||
}
|
||||
|
||||
return ok();
|
||||
}
|
||||
Reference in new issue
Block a user