turbo-remote-cache-construct
Version:
A Turborepo Remote Cache implementation using AWS API Gateway, Lambda, S3, and DynamoDB.
2 lines (1 loc) • 358 B
JavaScript
var a=async t=>{let e=t.headers.Authorization;if(!e||!e.startsWith("Bearer "))return{statusCode:401,body:JSON.stringify({error:"Unauthorized"})};let o=e.split(" ")[1],r={id:"123456",username:"johndoe",email:"johndoe@example.com",name:"John Doe",created_at:new Date().toISOString()};return{statusCode:200,body:JSON.stringify({user:r})}};export{a as handler};