mirror of
https://github.com/umami-software/umami.git
synced 2026-02-19 20:15:41 +01:00
Split queries into prisma and sql.
This commit is contained in:
parent
1a66e3df73
commit
b9fbbc6453
69 changed files with 117 additions and 115 deletions
|
|
@ -2,7 +2,7 @@ import { z } from 'zod';
|
|||
import { canUpdateLink, canDeleteLink, canViewLink } from '@/permissions';
|
||||
import { parseRequest } from '@/lib/request';
|
||||
import { ok, json, unauthorized, serverError, badRequest } from '@/lib/response';
|
||||
import { deleteLink, getLink, updateLink } from '@/queries';
|
||||
import { deleteLink, getLink, updateLink } from '@/queries/prisma';
|
||||
|
||||
export async function GET(request: Request, { params }: { params: Promise<{ linkId: string }> }) {
|
||||
const { auth, error } = await parseRequest(request);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue