oauth2 route draft to return an empty array
This commit is contained in:
		
							parent
							
								
									7dd1873962
								
							
						
					
					
						commit
						3a118841a0
					
				
							
								
								
									
										12
									
								
								api/src/routes/oauth2/tokens.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								api/src/routes/oauth2/tokens.ts
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,12 @@ | ||||
| //TODO: this is a template for a generic route
 | ||||
| 
 | ||||
| import { Router, Request, Response } from "express"; | ||||
| import { route } from "@fosscord/api"; | ||||
| const router = Router(); | ||||
| 
 | ||||
| router.get("/",route({}), async (req: Request, res: Response) => { | ||||
|     //TODO
 | ||||
| 	res.json([]); | ||||
| }); | ||||
| 
 | ||||
| export default router; | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 uurgothat
						uurgothat