Ejemplo n.º 1
0
        public HelpModule()
        {
            Get["/"] = _ =>
            {
                return(string.Format("Server Time:{0}", DateTime.Now));
            };

            Get["/Help"] = _ =>
            {
                var routeDic = RouteHelper.GetRouteDatas();
                return(JsonConvert.SerializeObject(routeDic, Formatting.Indented));
            };
        }