homepage/src/pages/api/bookmarks.js
2024-01-19 06:50:44 -08:00

9 lines
339 B
JavaScript

import { createAuthProvider } from "utils/auth/auth-helpers";
import { bookmarksResponse } from "utils/config/api-response";
import { getSettings } from "utils/config/config";
export default async function handler(req, res) {
const auth = createAuthProvider(getSettings())
res.send(await bookmarksResponse(auth.permissions(req)));
}