-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work in progress. Parse query string. Relates > #25
- Loading branch information
1 parent
29dd074
commit 6f09c73
Showing
7 changed files
with
34 additions
and
59 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,19 @@ | ||
const queries = require('../model/index') | ||
const queryString = require('query-string'); | ||
|
||
exports.post = (req, response) => { | ||
var queryObj = queryString.parseUrl(req.url).query; | ||
var backgroundArr = queryObj.bg.split(","); | ||
var resourceArr = queryObj.rsc.split(","); | ||
console.log("bg Arr is", backgroundArr, "rsc Arr is", resourceArr); | ||
const demo_tags = []; | ||
} | ||
|
||
// Old code: | ||
/* | ||
exports.get = (req, res) => { | ||
res.render('results', { | ||
layout: 'scrollable' | ||
}); | ||
} | ||
} | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters