mirror of
https://github.com/gethomepage/homepage.git
synced 2026-10-20 01:11:47 -07:00
Refactor: auth architecture (#7256)
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import { withAuth } from "utils/auth";
|
||||
import { widgetsResponse } from "utils/config/api-response";
|
||||
|
||||
export default async function handler(req, res) {
|
||||
async function handler(req, res) {
|
||||
res.send(await widgetsResponse());
|
||||
}
|
||||
|
||||
export default withAuth(handler);
|
||||
|
||||
Reference in New Issue
Block a user