import { routes } from '@botonic/server/src/api/routes' ; import * as cors from 'cors' ; import * as express from 'express' ; import * as morgan from 'morgan' ; export function getApp ( env , args ) { const app = express ( ) ; app . use ( express . json ( ) ) ; app . use ( express . urlencoded ( { extended : true } ) ) ; app . use ( cors ( ) ) ; app . use ( morgan ( 'tiny' ) ) ; app . use ( routes ( args ) ) ; return app ; }