NancyModule.ModulePath support
See original GitHub issueA NancyModule can be initialized with a modulePath like
public class V1Module : NancyModule
{
public V1Module() : base("v1")
{
// init "test/get"
// init "test/post"
}
}
so “test/get” and “test/post” requests are actually “v1/test/get” and “v1/test/post”.
I’ve digged into RouteDescriber and RouteBuilder but I’ve missed how to specify this. I am missing something?
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
NancyModule.cs - NancyFx/Nancy
Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono - Nancy/src/Nancy/NancyModule.cs at master ...
Read more >c# - Nancy, module not loaded
I'm fairly new to Nancy. What I'm trying to achieve, is to create a base class NancyBaseModule which inherits from the NancyModule class....
Read more >NancyModule.cs
/// Initializes a new instance of the <see cref="NancyModule"/> class. /// </summary>. /// <param name="modulePath">A <see cref="string"/> ...
Read more >Introducing Nancy, a lightweight web framework inspired ...
A quick look through the code (really just the NancyModule.cs) I would like to see support for a Server variable, and eventually support...
Read more >Type-safe URL templates for Nancy
The Nancy web framework parses URLs for you, and passes requests under a given URL route and HTTP method to your program. It...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
sorry guys, I made a mistake. all is fine, I’m simply dumb and I’ve missed a check in my code. sorry, again, for the time loss.
nope, I talk about what @jnallard said, he point exactly where I see the “problem”, metadata provider build routes from Nancy.RouteDescriptor, that doesn’t contain ModulePath information.
yep, maybe if you fix master branch, I can try to fix 1.4.3 one