import * as express from 'express' ; import { MicroframeworkLoader , MicroframeworkSettings } from 'microframework-w3tec' ; import { env } from '../env' ; export const homeLoader = ( settings ) => { if ( settings ) { const expressApp = settings . getData ( 'express_app' ) ; expressApp . get ( env . app . routePrefix , ( req , res ) => { return res . json ( { name : env . app . name , version : env . app . version , description : env . app . description , } ) ; } ) ; } } ;