Example #1
0
        public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
        {
            loggerFactory.MinimumLevel = LogLevel.Information;
            loggerFactory.AddConsole();
            loggerFactory.AddDebug();

            app.UseDeveloperExceptionPage();

            app.UseGitApi(Configuration);

            app.UseStaticFiles();

            app.Run(async context => {
                var path = context.Request.Path.Value;

                if (path == "/")
                {
                    context.Response.Redirect("/index.html");
                }
            });
        }