Converted admin, auth, me and realtime routes.

This commit is contained in:
Mike Cao committed 2025-01-28 22:29:03 -08:00
1 parent 6c9f1ad06b
commit 5205551ca8
25 files changed
+346 -7

No files matched your search

+14
View File
@@ -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();
}