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

15 lines
475 B
JavaScript
Raw Normal View History

2024-05-29 19:31:10 +00:00
import { c as config } from './config-BHx687w1.js';
2024-05-29 18:43:41 +00:00
import { e as error, j as json } from './index-Ddp2AB5f.js';
2024-05-29 19:31:10 +00:00
import './shared-server-i79vVjEm.js';
2024-05-29 18:43:41 +00:00
async function GET(event) {
if (!event.url.searchParams.has("id"))
return error(400);
const id = event.url.searchParams.get("id");
const article = await fetch(config.api_url + "/blog/article?id=" + id).then((x) => x.json());
return json(article);
}
export { GET };
2024-05-29 19:31:10 +00:00
//# sourceMappingURL=_server-BPw_dYxU.js.map