I am assume the data you want to send back is whatever the user typed in the user
form field. In your POST
handler you can get to that like this:
Post["/adduser"] = _ =>
{
var user = Request.From.user;
// do stuff
return View["Leaderboard"];
}
Request
is a property on NancyModule
and Form
is a property on Request
of type DynamicDictionary
. When there are FORM
field in the HTTP POST
request they will be accessible in Request.Form
by the same name as they have on the page.
For small but working check out this, particularly this line.