From 09231d2997ad4ad128db81b7ad3cac65f5405cf8 Mon Sep 17 00:00:00 2001
From: "Eduardo L. Buratti" <elburatti@inf.ufpr.br>
Date: Thu, 18 Aug 2016 14:21:42 -0300
Subject: [PATCH] Refactor boot.ts (order of imports)

---
 src/boot.ts | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/boot.ts b/src/boot.ts
index 1eb4b57c..f5c103de 100755
--- a/src/boot.ts
+++ b/src/boot.ts
@@ -22,16 +22,15 @@
 // external libraries
 import express = require('express');
 import path = require('path');
-
 const osprey = require('osprey');
 const ramlParser = require('raml-parser');
 
-// create a new express app
-const app = module.exports = express();
-
 // load router
 import { router } from './api/router-v1';
 
+// create a new express app
+const app = module.exports = express();
+
 // parse the RAML spec and load osprey middleware
 ramlParser.loadFile('specs/blendb-api-v1.raml')
     .then((raml: any) => {
-- 
GitLab