mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
Renamed id routes for API.
This commit is contained in:
parent
53a991176b
commit
4429198397
42 changed files with 154 additions and 170 deletions
|
|
@ -3,7 +3,7 @@ import { getAllowedUnits, getMinimumUnit } from './date';
|
|||
import { getWebsiteDateRange } from '../queries';
|
||||
|
||||
export async function parseDateRangeQuery(req: NextApiRequest) {
|
||||
const { id: websiteId, startAt, endAt, unit } = req.query;
|
||||
const { websiteId, startAt, endAt, unit } = req.query;
|
||||
|
||||
// All-time
|
||||
if (+startAt === 0 && +endAt === 1) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue