aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/files/filesGET.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2019-02-19 23:52:24 +0900
committerPitu <[email protected]>2019-02-19 23:52:24 +0900
commit89a271818ed25b0a17a17dd1d6804e34d1f2ec0f (patch)
tree2e63d3b41eeacb8f172f8ee3e1374124b934c6a3 /src/api/routes/files/filesGET.js
parentCreate wizard.js (diff)
downloadhost.fuwn.me-89a271818ed25b0a17a17dd1d6804e34d1f2ec0f.tar.xz
host.fuwn.me-89a271818ed25b0a17a17dd1d6804e34d1f2ec0f.zip
Switch config to .env
Diffstat (limited to 'src/api/routes/files/filesGET.js')
-rw-r--r--src/api/routes/files/filesGET.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/routes/files/filesGET.js b/src/api/routes/files/filesGET.js
index d1b6619..b41996b 100644
--- a/src/api/routes/files/filesGET.js
+++ b/src/api/routes/files/filesGET.js
@@ -1,6 +1,4 @@
const Route = require('../../structures/Route');
-const config = require('../../../../config');
-const db = require('knex')(config.server.database);
const Util = require('../../utils/Util');
class filesGET extends Route {
@@ -8,7 +6,7 @@ class filesGET extends Route {
super('/files', 'get');
}
- async run(req, res, user) {
+ async run(req, res, db, user) {
/*
Get all the files from the user
*/