Fixed a lot of naming errors.
This commit is contained in:
@@ -9,6 +9,6 @@
|
||||
"mongoose": "~3.6.13",
|
||||
"body-parser": "~1.0.1",
|
||||
"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 SqliteDatabase = require('src/database/SqliteDatabase');
|
||||
const SqliteDatabase = require('src/database/sqliteDatabase');
|
||||
const database = new SqliteDatabase(configuration.get('database', 'host'));
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
|
||||
var express = require('express'); // call express
|
||||
var app = express(); // define our app using express
|
||||
var bodyParser = require('body-parser');
|
||||
var sqlite3 = require('sqlite3').verbose();
|
||||
var bodyParser = require('body-parser');
|
||||
|
||||
|
||||
// configure app to use bodyParser()
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
const configuration = require('src/config/configuration').getInstance();
|
||||
const StrayRepository = require('src/seasoned/StrayRepository');
|
||||
const StrayRepository = require('src/seasoned/strayRepository');
|
||||
const strayRepository = new StrayRepository();
|
||||
|
||||
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 StrayRepository = require('src/seasoned/StrayRepository');
|
||||
const StrayRepository = require('src/seasoned/strayRepository');
|
||||
const strayRepository = new StrayRepository();
|
||||
|
||||
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