import { NextApiRequest , NextApiResponse } from 'next' ; import { services } from '../../data' ; export default ( req , res ) => { console . log ( 'API' , services ) ; res . status ( 200 ) . json ( { services } ) ; } ;