krakenjs / swaggerize-express

Design-driven apis with swagger 2.0 and express.
Other
354 stars 81 forks source link

wildcards in path #125

Open endasil opened 7 years ago

endasil commented 7 years ago

I have a service with an entrypoint like app.get('/forwardthis.) that takes anything after /forwardthis and pipes it to another url. For example /forwardthis/chat/place1 and /forwardthis/data/abc is received by the same endpoint and then whatever is sent in is forwarded to myurl.com, like myurl.com/chat/place1 and myurl.com/data/abc. Problem is i can not create a file named forwardthis. to have a filepath matching a route like that. How would i go about accomplishing this with swaggerize-express?