mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-10 07:18:47 +00:00
homepage-plus
This commit is contained in:
parent
cadf1433af
commit
e70743048b
16 changed files with 262 additions and 52 deletions
|
@ -1,5 +1,8 @@
|
|||
import { readIdentitySettings } from "utils/identity/identity-helpers";
|
||||
import { bookmarksResponse } from "utils/config/api-response";
|
||||
import { getSettings } from "utils/config/config";
|
||||
|
||||
export default async function handler(req, res) {
|
||||
res.send(await bookmarksResponse());
|
||||
const { provider, groups } = readIdentitySettings(getSettings().identity);
|
||||
res.send(await bookmarksResponse(provider.getIdentity(req), groups));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue