- Added A TON of stuff, separated everything neatly and cleaned most models

This commit is contained in:
Alexis
2020-06-08 19:55:36 +02:00
parent ce9018f65e
commit 48987b8349
28 changed files with 602 additions and 171 deletions

View File

@@ -5,7 +5,7 @@ const express = require('express')
let router = express.Router()
// Connection
const connection = require('../database/connection')
const connection = require('../database/bookshelf')
const db = connection.db
// Repository
@@ -15,7 +15,7 @@ const Users = new UserRepository();
const regexInt = RegExp(/^[1-9]\d*$/)
// Error handling
const { HttpError } = require('../models/Errors')
const { HttpError } = require('../validations/Errors')
// ROUTES
// GET ALL ------------------