Пример #1
0
        public UserModule(IThumbsUpNancyApi thumbsUp)
            : base("/user")
        {
            this.RequiresAuthentication();

            Post["/create"] = _ => Response.AsJson(thumbsUp.CreateUser(Params.UserName, Params.Email).Data);
        }
Пример #2
0
        public UserModule(IThumbsUpNancyApi thumbsUp)
            : base("/user")
        {
            this.RequiresAuthentication();

            Post["/create"] = _ => Response.AsJson(thumbsUp.CreateUser(Params.UserName, Params.Email).Data);
        }