mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-24 18:26:20 +01:00
Use shallow routing for website details.
This commit is contained in:
parent
cb3895e565
commit
05245ca316
@ -17,9 +17,9 @@ export default function MenuLayout({
|
|||||||
|
|
||||||
function handleSelect(url) {
|
function handleSelect(url) {
|
||||||
if (replace) {
|
if (replace) {
|
||||||
router.replace(url);
|
router.replace(url, undefined, { shallow: true });
|
||||||
} else {
|
} else {
|
||||||
router.push(url);
|
router.push(url, undefined, { shallow: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "umami",
|
"name": "umami",
|
||||||
"version": "2.0.0-beta.1",
|
"version": "2.0.0-beta.2",
|
||||||
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
|
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
|
||||||
"author": "Mike Cao <mike@mikecao.com>",
|
"author": "Mike Cao <mike@mikecao.com>",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
import { createWebsite, getUser, getAllWebsites, getUserWebsites } from 'queries';
|
import { createWebsite, getUser, getAllWebsites, getUserWebsites } from 'queries';
|
||||||
import { ok, methodNotAllowed, unauthorized, getRandomChars } from 'next-basics';
|
import { ok, methodNotAllowed, unauthorized, getRandomChars } from 'next-basics';
|
||||||
import { useAuth } from 'lib/middleware';
|
import { useAuth, useCors } from 'lib/middleware';
|
||||||
import { uuid } from 'lib/crypto';
|
import { uuid } from 'lib/crypto';
|
||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
|
await useCors(req, res);
|
||||||
await useAuth(req, res);
|
await useAuth(req, res);
|
||||||
|
|
||||||
const { user_id, include_all } = req.query;
|
const { user_id, include_all } = req.query;
|
||||||
|
Loading…
Reference in New Issue
Block a user