bring over code challenge
This commit is contained in:
commit
76b596da09
20 changed files with 51221 additions and 0 deletions
9
pages/api/airports.ts
Normal file
9
pages/api/airports.ts
Normal file
|
@ -0,0 +1,9 @@
|
|||
import { NextApiRequest, NextApiResponse } from 'next'
|
||||
|
||||
import { allAirports } from '../../models/airport'
|
||||
|
||||
export default async (req: NextApiRequest, res: NextApiResponse) => {
|
||||
const airports = await allAirports()
|
||||
|
||||
res.status(200).json(airports)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue