Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Configure(IApplicationBuilder app, IHostingEnvironment env)
- {
- if (env.IsDevelopment())
- {
- app.UseDeveloperExceptionPage();
- }
- //Adding static file middleware
- app.UseStaticFiles();
- app.Run(async (context) =>
- {
- await context.Response.WriteAsync("Hello World!");
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement