mirror of
https://git.zhongyuan.online/ytke/tap.git
synced 2026-11-24 22:15:18 -08:00
10 lines
327 B
TypeScript
10 lines
327 B
TypeScript
import { authFailure, jsonResponse, requireApiUser } from '@/lib/server/auth';
|
|
|
|
export const runtime = 'nodejs';
|
|
export const dynamic = 'force-dynamic';
|
|
|
|
export async function GET() {
|
|
try { return jsonResponse({ user: await requireApiUser({ allowPasswordChange: true }) }); }
|
|
catch (error) { return authFailure(error); }
|
|
}
|