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