mirror of
https://github.com/Litlyx/litlyx
synced 2025-12-11 00:08:37 +01:00
shields update
This commit is contained in:
8
dashboard/server/api/shields/ip/list.ts
Normal file
8
dashboard/server/api/shields/ip/list.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { AddressBlacklistModel } from "~/shared/schema/shields/AddressBlacklistSchema";
|
||||
|
||||
export default defineEventHandler(async event => {
|
||||
const data = await getRequestData(event, [], ['OWNER']);
|
||||
if (!data) return;
|
||||
const blacklist = await AddressBlacklistModel.find({ project_id: data.project_id });
|
||||
return blacklist.map(e => e.toJSON());
|
||||
});
|
||||
Reference in New Issue
Block a user