muttermint
muttermint

Reputation: 33

NancyFX Routes - multiple variable parameters

I have a list of urls which I have to use to render content to the browser. I want to be able to dynamically deal with the request using nancyfx

the format of the urls are http;//mydomain.com/X/pathA/pathB/pathC/pathD pathA, pathB, pathC and pathD are variable - meaning it could be anything (these are predefined but I don't want to physically add eacg on in)

How do I create the routes?

Upvotes: 0

Views: 831

Answers (1)

TheCodeJunkie
TheCodeJunkie

Reputation: 9616

Well Nancy capture segments are, by nature, greedy so a route like /x/{stuff} would capture your route and {stuff} would contain pathA/pathB/pathC/pathD

Upvotes: 1

Related Questions