add website tests
This commit is contained in:
16
apps/website/app/api/media/avatar/[driverId]/route.ts
Normal file
16
apps/website/app/api/media/avatar/[driverId]/route.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export const runtime = 'nodejs';
|
||||
|
||||
const ONE_BY_ONE_PNG_BASE64 =
|
||||
'iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO0pS0kAAAAASUVORK5CYII=';
|
||||
|
||||
export async function GET(): Promise<Response> {
|
||||
const body = Buffer.from(ONE_BY_ONE_PNG_BASE64, 'base64');
|
||||
|
||||
return new Response(body, {
|
||||
status: 200,
|
||||
headers: {
|
||||
'content-type': 'image/png',
|
||||
'cache-control': 'public, max-age=60',
|
||||
},
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user