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
Branches
No related tags found
No related merge requests found
......@@ -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) => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment