16 lines
263 B
TypeScript
16 lines
263 B
TypeScript
|
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;
|