12 lines
261 B
TypeScript
12 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'
|
||
|
}
|
||
|
});
|
||
|
}
|