first working state
This commit is contained in:
		
							parent
							
								
									0a9b76f9c7
								
							
						
					
					
						commit
						4a0db151d4
					
				
					 23 changed files with 512 additions and 74 deletions
				
			
		|  | @ -1,7 +1,9 @@ | |||
| import { getAllBorders } from "../../../lib/borders"; | ||||
| import { getAllBorders, countAllBorders } from "../../../lib/borders"; | ||||
| 
 | ||||
| export default function handler(req, res) { | ||||
|   getAllBorders().then((result) => { | ||||
|     return res.status(200).json(result); | ||||
|   getAllBorders(req.query?.limit, req.query?.cursor).then((result) => { | ||||
|     countAllBorders().then((count) => { | ||||
|       return res.status(200).json({ data: result, count }); | ||||
|     }); | ||||
|   }); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue