Skip to content
Snippets Groups Projects
Commit 09231d29 authored by Eduardo L. Buratti's avatar Eduardo L. Buratti
Browse files

Refactor boot.ts (order of imports)

parent 09a66347
No related branches found
No related tags found
No related merge requests found
...@@ -22,16 +22,15 @@ ...@@ -22,16 +22,15 @@
// external libraries // external libraries
import express = require('express'); import express = require('express');
import path = require('path'); import path = require('path');
const osprey = require('osprey'); const osprey = require('osprey');
const ramlParser = require('raml-parser'); const ramlParser = require('raml-parser');
// create a new express app
const app = module.exports = express();
// load router // load router
import { router } from './api/router-v1'; import { router } from './api/router-v1';
// create a new express app
const app = module.exports = express();
// parse the RAML spec and load osprey middleware // parse the RAML spec and load osprey middleware
ramlParser.loadFile('specs/blendb-api-v1.raml') ramlParser.loadFile('specs/blendb-api-v1.raml')
.then((raml: any) => { .then((raml: any) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment