parent
55ad58bfd3
commit
2baba6ada4
@ -0,0 +1,17 @@
|
||||
export async function POST(req: Request) {
|
||||
const data = await req.json();
|
||||
|
||||
const { username, sites, withNSFW } = data;
|
||||
|
||||
return await fetch("http://api:8000", {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify({
|
||||
usernames: [username],
|
||||
sites,
|
||||
f: ["nsfw"]
|
||||
})
|
||||
});
|
||||
}
|
Loading…
Reference in new issue