import { Application , Request , Response } from "express" ; import CoursesData from "../../data/courses.json" ; export const loadApiEndpoints = ( app ) : void => { app . get ( "/api" , ( req , res ) => { return res . status ( 200 ) . send ( CoursesData ) ; } ) ; } ;