refactor(example): simplified server bootsraping
MODIFY
example/src/index.ts
example/src/index.ts
import * as http from 'http';
import { app } from './app';
-const createServer = app => {
const HOSTNAME = '127.0.0.1';
const PORT = 1337;
@@ -14,6 +13,3 @@ const createServer = app => {
httpServer.on('close', () => {
console.log(`Connection closed`);
});
-};
-
-createServer(app);

refactor(example): simplified server bootsraping