// This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app) { MyController controller = new MyController(); app.Run(async(context) => { switch (context.Request.Path.Value) { case "/about": await controller.About().Show(context); break; default: await controller.Index().Show(context); break; } }); }