oppdaterer frontend-setup + mappenavn
Co-authored-by: Amalie Erdal Mansaker <amalie.erdal.mansaker@nav.no> Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
		
							parent
							
								
									f214f16780
								
							
						
					
					
						commit
						ff95d772fa
					
				
					 28 changed files with 234 additions and 4240 deletions
				
			
		
							
								
								
									
										13
									
								
								frontend/pages/api/hello.ts
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								frontend/pages/api/hello.ts
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| // 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
	
	 sindrekjelsrud
						sindrekjelsrud