🎨 Ryddet opp i 🍝-kode
Co-authored-by: Amalie Erdal Mansåker <amalie.erdal.mansaker@nav.no> Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
		
							parent
							
								
									c7c0a1f130
								
							
						
					
					
						commit
						704bc8951a
					
				
					 3 changed files with 66 additions and 77 deletions
				
			
		|  | @ -1,13 +0,0 @@ | |||
| // Next.js API route support: https://nextjs.org/docs/api-routes/introduction
 | ||||
| import type { NextApiRequest, NextApiResponse } from 'next' | ||||
| 
 | ||||
| type Data = { | ||||
|   name: string | ||||
| } | ||||
| 
 | ||||
| export default function handler( | ||||
|   req: NextApiRequest, | ||||
|   res: NextApiResponse<Data> | ||||
| ) { | ||||
|   res.status(200).json({ name: 'John Doe' }) | ||||
| } | ||||
		Reference in a new issue
	
	 Sindre Kjelsrud
						Sindre Kjelsrud