提供給台大案英特拉線上繳費填寫發票資訊用
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

31 строка
759B

  1. var builder = WebApplication.CreateBuilder(args);
  2. // Add services to the container.
  3. builder.Services.AddRazorPages();
  4. builder.Services.AddHttpClient();
  5. // Configure company info
  6. builder.Services.Configure<Altob.NtuInvoiceGateway.Models.CompanyInfo>(
  7. builder.Configuration.GetSection("CompanyInfo"));
  8. var app = builder.Build();
  9. // Configure the HTTP request pipeline.
  10. if (!app.Environment.IsDevelopment())
  11. {
  12. app.UseExceptionHandler("/Error");
  13. // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
  14. app.UseHsts();
  15. }
  16. app.UseHttpsRedirection();
  17. app.UseRouting();
  18. app.UseAuthorization();
  19. app.MapStaticAssets();
  20. app.MapRazorPages()
  21. .WithStaticAssets();
  22. app.Run();