hyperoslo / Compass

:earth_africa: Compass helps you setup a central navigation system for your application
http://hyper.no
Other
825 stars 47 forks source link

Feature parsing regular URL's #14

Closed zenangst closed 8 years ago

zenangst commented 8 years ago

With this PR, Compass can handle regular URL's with both queries and/or fragments.

So when parsing the this example;

compassTests://callback/#access_token=IjvcgrkQk1p7TyJxKa26rzM1wBMFZW6XoHK4t5Gkt1xQLTN8l7ppR0H3EZXpoP0uLAN49oCDqTHsvnEV&token_type=Bearer&expires_in=3600

Route in the callback would end up being callback and all of the fragments would be stored for you in arguments as a key value pair. Same thing would happen if you used a URL with a query instead of fragments.

vadymmarkov commented 8 years ago

@zenangst Awesome.