import { ExpressRequest, ExpressResponse } from 'CommonServer/Utils/Express'; import ResourceUtil, { ModelDocumentation } from '../Utils/Resources'; const Resources: Array = ResourceUtil.getResources(); const FeaturedResources: Array = ResourceUtil.getFeaturedResources(); export default class ServiceHandler { public static async executeResponse( req: ExpressRequest, res: ExpressResponse ): Promise { let pageTitle: string = ''; let pageDescription: string = ''; const page: string | undefined = req.params['page']; const pageData: any = {}; pageData.featuredResources = FeaturedResources; pageTitle = 'Introduction'; pageDescription = 'API Documentation for OneUptime'; return res.render('pages/index', { page: page, resources: Resources, pageTitle: pageTitle, pageDescription: pageDescription, pageData: pageData, }); } }