aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/auth/apiKey.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2018-09-16 00:56:13 -0300
committerPitu <[email protected]>2018-09-16 00:56:13 -0300
commite7767ac7095f93393a627fd5e867af4a1ca4b011 (patch)
treec571d5a13ac949bc8c826a27772b78992b320d58 /src/api/routes/auth/apiKey.js
parentUtils (diff)
downloadhost.fuwn.me-e7767ac7095f93393a627fd5e867af4a1ca4b011.tar.xz
host.fuwn.me-e7767ac7095f93393a627fd5e867af4a1ca4b011.zip
Routes
Diffstat (limited to 'src/api/routes/auth/apiKey.js')
-rw-r--r--src/api/routes/auth/apiKey.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/api/routes/auth/apiKey.js b/src/api/routes/auth/apiKey.js
new file mode 100644
index 0000000..84df2e3
--- /dev/null
+++ b/src/api/routes/auth/apiKey.js
@@ -0,0 +1,23 @@
+const Route = require('../../structures/Route');
+
+class apiKeyGET extends Route {
+ constructor() {
+ super('/auth/apiKey', 'get');
+ }
+
+ run(req, res, user) {
+ return res.json({ message: 'Hai hai api works.' });
+ }
+}
+
+class apiKeyPOST extends Route {
+ constructor() {
+ super('/auth/apiKey', 'post');
+ }
+
+ run(req, res, user) {
+ return res.json({ message: 'Hai hai api works.' });
+ }
+}
+
+module.exports = [apiKeyGET, apiKeyPOST];