9 lines
281 B
JavaScript
9 lines
281 B
JavaScript
import { createAuthFromSettings } from "utils/auth/auth-helpers";
|
|
import { widgetsResponse } from "utils/config/api-response";
|
|
|
|
export default async function handler(req, res) {
|
|
const auth = createAuthFromSettings();
|
|
|
|
res.send(await widgetsResponse(auth.permissions(req)));
|
|
}
|