Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use querystring #62

Open
helenzhou6 opened this issue Mar 29, 2018 · 0 comments
Open

Use querystring #62

helenzhou6 opened this issue Mar 29, 2018 · 0 comments
Assignees

Comments

@helenzhou6
Copy link

I would ideally use the querystring module to handle grabbing what the user has inputted from the endpoint

For example for an endpoint of /search/?q=topic
In your `handler.jsz file do:

  • At the top: const querystring = require("querystring");
  • Then let searchedInput = querystring.parse(query)['/search/?q'].toLowerCase().trim();

To deal with spaces, punctuation, casing and random user inputted spaces

@Parissai Parissai self-assigned this Mar 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants