mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 16:45:35 +01:00
Convert event-data, events, session-data, sessions routes.
This commit is contained in:
parent
baa3851fb4
commit
7d5556a637
47 changed files with 692 additions and 136 deletions
|
|
@ -7,6 +7,7 @@ import { checkRequest } from 'lib/request';
|
|||
|
||||
export async function GET(request: Request, { params }: { params: Promise<{ userId: string }> }) {
|
||||
const { userId } = await params;
|
||||
|
||||
const auth = await checkAuth(request);
|
||||
|
||||
if (!auth || !(await canViewUser(auth, userId))) {
|
||||
|
|
@ -32,6 +33,7 @@ export async function POST(request: Request, { params }: { params: Promise<{ use
|
|||
}
|
||||
|
||||
const { userId } = await params;
|
||||
|
||||
const auth = await checkAuth(request);
|
||||
|
||||
if (!auth || !(await canUpdateUser(auth, userId))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue