aboutsummaryrefslogtreecommitdiff
path: root/routes/opensearch.js
diff options
context:
space:
mode:
authorNoah Loomans <noahloomans@gmail.com>2017-09-13 16:28:53 +0200
committerNoah Loomans <noahloomans@gmail.com>2017-09-13 16:28:53 +0200
commit3fb86482404e11942cd83c3500a297a3991db0e4 (patch)
treec5e7261de72c2b7f871580784525d06d036a6219 /routes/opensearch.js
parent5aac32f72eca8c66e879583ce653d07bb3c7370f (diff)
Restructure project
Diffstat (limited to 'routes/opensearch.js')
-rw-r--r--routes/opensearch.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/routes/opensearch.js b/routes/opensearch.js
deleted file mode 100644
index c3e2e57..0000000
--- a/routes/opensearch.js
+++ /dev/null
@@ -1,12 +0,0 @@
-'use strict'
-
-const express = require('express')
-const router = express.Router()
-const path = require('path')
-
-router.get('/', function (req, res, next) {
- res.setHeader('content-type', 'application/opensearchdescription+xml')
- res.sendFile('opensearch.xml', { root: path.join(__dirname, '../public') })
-})
-
-module.exports = router