Fixed a lot of naming errors.
This commit is contained in:
@@ -9,6 +9,6 @@
|
|||||||
"mongoose": "~3.6.13",
|
"mongoose": "~3.6.13",
|
||||||
"body-parser": "~1.0.1",
|
"body-parser": "~1.0.1",
|
||||||
"cross-env": "^3.1.3",
|
"cross-env": "^3.1.3",
|
||||||
"sqlite": "^2.5.0"
|
"sqlite": "^2.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
const SqliteDatabase = require('src/database/SqliteDatabase');
|
const SqliteDatabase = require('src/database/sqliteDatabase');
|
||||||
const database = new SqliteDatabase(configuration.get('database', 'host'));
|
const database = new SqliteDatabase(configuration.get('database', 'host'));
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
|
|
||||||
var express = require('express'); // call express
|
var express = require('express'); // call express
|
||||||
var app = express(); // define our app using express
|
var app = express(); // define our app using express
|
||||||
var bodyParser = require('body-parser');
|
var bodyParser = require('body-parser');
|
||||||
var sqlite3 = require('sqlite3').verbose();
|
|
||||||
|
|
||||||
|
|
||||||
// configure app to use bodyParser()
|
// configure app to use bodyParser()
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
const StrayRepository = require('src/seasoned/StrayRepository');
|
const StrayRepository = require('src/seasoned/strayRepository');
|
||||||
const strayRepository = new StrayRepository();
|
const strayRepository = new StrayRepository();
|
||||||
|
|
||||||
function strayByIdController(req, res) {
|
function strayByIdController(req, res) {
|
||||||
@@ -14,4 +14,4 @@ function strayByIdController(req, res) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = strayByIdController;
|
module.exports = strayByIdController;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
const configuration = require('src/config/configuration').getInstance();
|
const configuration = require('src/config/configuration').getInstance();
|
||||||
const StrayRepository = require('src/seasoned/StrayRepository');
|
const StrayRepository = require('src/seasoned/strayRepository');
|
||||||
const strayRepository = new StrayRepository();
|
const strayRepository = new StrayRepository();
|
||||||
|
|
||||||
function verifyStrayController(req, res) {
|
function verifyStrayController(req, res) {
|
||||||
@@ -14,4 +14,4 @@ function verifyStrayController(req, res) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = verifyStrayController;
|
module.exports = verifyStrayController;
|
||||||
|
|||||||
Reference in New Issue
Block a user