feat(frontend): incomplete port to next.js
This commit is contained in:
		
							parent
							
								
									b9c30379ee
								
							
						
					
					
						commit
						eec01dc070
					
				
					 50 changed files with 2874 additions and 3163 deletions
				
			
		
							
								
								
									
										13
									
								
								frontend/pages/api/hello.ts
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								frontend/pages/api/hello.ts
									
										
									
									
									
										Executable 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' })
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue