jcubic / wayne

Service Worker Routing library for in browser HTTP requests
https://jcubic.github.io/wayne
MIT License
556 stars 29 forks source link

Add parenetneses and question mark syntax #24

Closed jcubic closed 1 year ago

jcubic commented 1 year ago

There is should be a way to have what's you can in express.js:

'/login(/:token)?'

with the Wayne syntax:

'/login(/{token})?'

Add support for:

jcubic commented 1 year ago

I'm not sure about parentheses but this works in Express.js '/login/:token?' and it match