Skip to content

Commit

Permalink
Revert "Update index.js"
Browse files Browse the repository at this point in the history
This reverts commit 04f5916.
  • Loading branch information
juandjara committed Jan 12, 2017
1 parent 04f5916 commit 9c7e326
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ const { pushView } = require('./utils')
module.exports = async function (req, res) {
const { pathname, query } = url.parse(req.url, /* parseQueryString */ true)
res.setHeader('Access-Control-Allow-Origin', '*')
res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept")
// Send all views down if "?all" is true
if (String(query.all) === 'true') {
const data = {
Expand Down

0 comments on commit 9c7e326

Please sign in to comment.