mirror of
https://github.com/umami-software/umami.git
synced 2026-02-17 11:05:36 +01:00
use uuid
This commit is contained in:
parent
b0bed5e73a
commit
c147742d7a
18 changed files with 84 additions and 52 deletions
|
|
@ -3,8 +3,7 @@ import { methodNotAllowed, ok, unauthorized } from 'next-basics';
|
|||
import { allowQuery } from 'lib/auth';
|
||||
|
||||
export default async (req, res) => {
|
||||
const { id } = req.query;
|
||||
const websiteId = +id;
|
||||
const { id: websiteId } = req.query;
|
||||
|
||||
if (req.method === 'POST') {
|
||||
if (!(await allowQuery(req))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue