aboutsummaryrefslogtreecommitdiff
path: root/src/server/routes/opensearch.js
blob: c3e2e57d965c23f753ac6adc3a8c6b97de972de7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'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