youtuber-blog-frontend/build/server/chunks/_server-DUA8h5Az.js

17 lines
522 B
JavaScript
Raw Normal View History

2024-06-07 14:10:14 +00:00
import { c as config } from './config-BHx687w1.js';
import { e as error, j as json } from './index-Ddp2AB5f.js';
import './shared-server-i79vVjEm.js';
async function DELETE(event) {
if (!event.url.searchParams.has("id"))
return error(400);
const id = event.url.searchParams.get("id");
const response = await event.fetch(config.api_url + "/dashboard/article?id=" + id, {
method: "DELETE"
}).then((x) => x.json());
return json(response);
}
export { DELETE };
//# sourceMappingURL=_server-DUA8h5Az.js.map