Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. public void Configure(IApplicationBuilder app, IHostingEnvironment env)
  2. {
  3. if (env.IsDevelopment())
  4. {
  5. app.UseDeveloperExceptionPage();
  6. }
  7.  
  8. //Adding static file middleware
  9. app.UseStaticFiles();
  10.  
  11. app.Run(async (context) =>
  12. {
  13. await context.Response.WriteAsync("Hello World!");
  14. });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement