mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 22:57:12 +01:00
Converted admin, auth, me and realtime routes.
This commit is contained in:
parent
6c9f1ad06b
commit
5205551ca8
25 changed files with 346 additions and 7 deletions
12
src/app/api/auth/verify/route.ts
Normal file
12
src/app/api/auth/verify/route.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { parseRequest } from 'lib/request';
|
||||
import { json } from 'lib/response';
|
||||
|
||||
export async function GET(request: Request) {
|
||||
const { auth, error } = await parseRequest(request);
|
||||
|
||||
if (error) {
|
||||
return error();
|
||||
}
|
||||
|
||||
return json(auth.user);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue