summaryrefslogtreecommitdiff
path: root/routes/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'routes/index.js')
-rw-r--r--routes/index.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/routes/index.js b/routes/index.js
deleted file mode 100644
index 570aea0..0000000
--- a/routes/index.js
+++ /dev/null
@@ -1,18 +0,0 @@
-const database = require("../database");
-const express = require("express");
-const router = express.Router();
-
-/* GET home page. */
-router.get('/', (req, res, next) => {
- database.search("crawled", {
- size: 20,
- from: 0,
- query: {
- match_all: {}
- }
- }).then(results => {
- res.json(results.hits)
- })
-});
-
-module.exports = router; \ No newline at end of file