mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-20 08:13:41 +01:00
13 lines
258 B
JavaScript
13 lines
258 B
JavaScript
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);
|
|
};
|