|
import * as dotenv from 'dotenv';
|
|
import * as express from 'express';
|
|
|
|
import home from './controllers/home';
|
|
|
|
dotenv.config();
|
|
|
|
const app = express();
|
|
|
|
// Express configuration
|
|
app.set('port', process.env.PORT || 3000);
|
|
|
|
app.get('/', home);
|
|
|
|
export default app;
|