Replies: 1 comment 1 reply
-
| 
         You can't skip the first and the second optional parameter when specifying the third parameter. A parameter that is optional means it has a default value if you don't provide one. Usually the default value is also mentioned in the docs.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
For example:
/youtube/charts/:category?/:country?/:embed?category,countryandembedare optional, and let's say I want to specify the value ofembedand use default values for other optional parameters.What URL / route should I use?
I have tried several times but I couldn't figure out the correct way to skip the 1st and 2nd params.
e.g. These won't work:
https://rsshub.app/youtube/charts/:/:/nohttps://rsshub.app/youtube/charts/?/?/nohttps://rsshub.app/youtube/charts/default/default/nohttps://rsshub.app/youtube/charts/noBeta Was this translation helpful? Give feedback.
All reactions