mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-10-04 02:24:39 -04:00
9 lines
310 B
TypeScript
9 lines
310 B
TypeScript
import { getLocale } from '~/server/data.ts';
|
|
import { getNounEntries } from '~/server/nouns.ts';
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
const { isGranted } = await useAuthentication(event);
|
|
const db = useDatabase();
|
|
return await getNounEntries(db, isGranted, getLocale(event));
|
|
});
|