mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 15:17:23 +01:00
Implement redux.
This commit is contained in:
parent
9d8a2406e1
commit
5d4ff5cfa4
31 changed files with 341 additions and 85 deletions
11
pages/api/auth/verify.js
Normal file
11
pages/api/auth/verify.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { useAuth } from 'lib/middleware';
|
||||
|
||||
export default async (req, res) => {
|
||||
await useAuth(req, res);
|
||||
|
||||
if (req.auth) {
|
||||
return res.status(200).json(req.auth);
|
||||
}
|
||||
|
||||
return res.status(401).end();
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue