mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 06:08:48 +00:00
8 lines
386 B
JavaScript
8 lines
386 B
JavaScript
import { readIdentitySettings } from "utils/identity/identity-helpers";
|
|
import { servicesResponse } from "utils/config/api-response";
|
|
import { getSettings } from "utils/config/config";
|
|
|
|
export default async function handler(req, res) {
|
|
const { provider, groups } = readIdentitySettings(getSettings().identity);
|
|
res.send(await servicesResponse(provider.getIdentity(req), groups));
|
|
}
|