|
|
@ -1,6 +1,5 @@ |
|
|
|
using System.Text.RegularExpressions; |
|
|
|
using Coravel; |
|
|
|
using Coravel.Scheduling.Schedule; |
|
|
|
using Microsoft.AspNetCore.Builder; |
|
|
|
using Microsoft.AspNetCore.Hosting; |
|
|
|
using Microsoft.AspNetCore.Mvc.ApplicationModels; |
|
|
@ -47,7 +46,9 @@ public class Startup |
|
|
|
{ |
|
|
|
app.UseRouting(); |
|
|
|
app.UseEndpoints(endpoints => endpoints.MapHub<PageHub>("/api/hub")); |
|
|
|
app.ApplicationServices.UseScheduler(scheduler =>{ }); |
|
|
|
app.ApplicationServices.UseScheduler(scheduler => |
|
|
|
{ |
|
|
|
}); |
|
|
|
var contentTypeProvider = new FileExtensionContentTypeProvider(); |
|
|
|
contentTypeProvider.Mappings.Add(".mjs", "text/javascript"); |
|
|
|
app.UseStaticFiles(new StaticFileOptions { ContentTypeProvider = contentTypeProvider }); |
|
|
|