NancyFx / Nancy

Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono
http://nancyfx.org
MIT License
7.16k stars 1.47k forks source link

Is the doc outdated or do i miss anything? #2993

Open Houve opened 4 years ago

Houve commented 4 years ago

Nancy 2.0 doesn't work with this syntax: Get["/"] = parameters => "Hello World";

pdwetz commented 4 years ago

The wiki notes that the syntax listed is for 1.4x with a link to the "new" 2.0 syntax: https://github.com/NancyFx/Nancy/wiki/Nancy-v2-Upgrade-Notes#user-content-routing (i'm not sure why it still lists both now that 2.0 is no longer beta)

timsheu commented 4 years ago

https://github.com/NancyFx/Nancy/blob/master/samples/Nancy.Demo.ConstraintRouting/ConstraintRoutingModule.cs Samples here.