Code Monkey home page Code Monkey logo

Comments (3)

origeva avatar origeva commented on June 8, 2024 1

I agree it looks weird but there currently isn't a standardized way of passing an array query parameter, so it's really a matter of taste (weird is pretty subjective).
Personally I'd rather ?category=sponsor,interaction
Or the way you mentioned.

from sponsorblockserver.

erdnaxeli avatar erdnaxeli commented on June 8, 2024

It is not totally subjective. Some way are more supported than others.

k=v1&k=v2 or k[]=v1&k[]=v2 are common, k=v1,v2 is less, and I've never seen k=["v1","v2"] :p

from sponsorblockserver.

mchangrh avatar mchangrh commented on June 8, 2024

This should already be possible, express handles repeated query parameter names as an array

https://expressjs.com/en/5x/api.html#req.query

this should be plug-and-play with an update to documentation

from sponsorblockserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.