mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
11 lines
261 B
TypeScript
11 lines
261 B
TypeScript
|
|
export async function POST({ request }: { request: Request }) {
|
|
let body = await request.arrayBuffer();
|
|
let data = new Uint8Array(body);
|
|
let r = data.reverse();
|
|
return new Response(r, {
|
|
headers: {
|
|
'Content-Type': 'application/octet-stream'
|
|
}
|
|
});
|
|
}
|