mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-08 06:38:46 +00:00
homepage-plus
This commit is contained in:
parent
6b4182ab96
commit
7453754b36
16 changed files with 262 additions and 52 deletions
|
@ -1,5 +1,8 @@
|
|||
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) {
|
||||
res.send(await servicesResponse());
|
||||
const { provider, groups } = readIdentitySettings(getSettings().identity);
|
||||
res.send(await servicesResponse(provider.getIdentity(req), groups));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue