express-api
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -12,2 +12,3 @@ 'use strict'; | ||
function EApi(options) { | ||
this.options = options; | ||
var express = options.express; | ||
@@ -233,3 +234,3 @@ if (!express) throw new Error('express is required to route resources'); | ||
schemaRouter.get('/', cors('*'), function(req, res) { | ||
var json = self._parseSchemaFile(indexFile); | ||
var json = self.options.indexFile || self._parseSchemaFile(indexFile); | ||
return json ? res.json(json) : res.send(404); | ||
@@ -236,0 +237,0 @@ }); |
{ | ||
"name": "express-api", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
574069
9851
7