Fixed a lot of naming errors.

This commit is contained in:
2017-04-12 22:37:24 +02:00
parent 6c29e59b2b
commit 416d0a5a54
5 changed files with 7 additions and 8 deletions

View File

@@ -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"
}
}

View File

@@ -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'));
/**

View File

@@ -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()

View File

@@ -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;

View File

@@ -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;