mirror of
https://github.com/umami-software/umami.git
synced 2026-02-16 10:35:35 +01:00
Details page.
This commit is contained in:
parent
5b45301178
commit
ac2612924e
12 changed files with 312 additions and 10 deletions
12
pages/api/website/[id]/index.js
Normal file
12
pages/api/website/[id]/index.js
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { getWebsite } from 'lib/db';
|
||||
import { useAuth } from 'lib/middleware';
|
||||
|
||||
export default async (req, res) => {
|
||||
await useAuth(req, res);
|
||||
|
||||
const { id } = req.query;
|
||||
|
||||
const website = await getWebsite(id);
|
||||
|
||||
return res.status(200).json(website);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue