mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-10 15:58:38 +01:00
8 lines
359 B
TypeScript
8 lines
359 B
TypeScript
import { CountryBlacklistModel } from "~/shared/schema/shields/CountryBlacklistSchema";
|
|
|
|
export default defineEventHandler(async event => {
|
|
const data = await getRequestData(event, [], ['OWNER']);
|
|
if (!data) return;
|
|
const blacklist = await CountryBlacklistModel.find({ project_id: data.project_id });
|
|
return blacklist.map(e => e.toJSON());
|
|
}); |