hopefully not a horribly foolish refactoring
This commit is contained in:
parent
59d660165f
commit
1ecaf64dea
82 changed files with 782 additions and 398 deletions
|
@ -1,8 +1,8 @@
|
|||
using System.Text.Json;
|
||||
using System.Text.Json.Serialization;
|
||||
using Femto.Modules.Blog;
|
||||
using Femto.Modules.Blog.Application;
|
||||
using Femto.Modules.Media;
|
||||
using Quartz;
|
||||
using Femto.Modules.Media.Application;
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
|
@ -16,13 +16,9 @@ var blobStorageRoot = builder.Configuration.GetValue<string>("BlobStorageRoot");
|
|||
if (blobStorageRoot is null)
|
||||
throw new Exception("no blob storage root found");
|
||||
|
||||
builder.Services.AddQuartzHostedService(options =>
|
||||
{
|
||||
options.WaitForJobsToComplete = true;
|
||||
});
|
||||
|
||||
builder.Services.UseBlogModule(databaseConnectionString);
|
||||
builder.Services.UseMediaModule(databaseConnectionString, blobStorageRoot);
|
||||
builder.Services.InitializeBlogModule(databaseConnectionString);
|
||||
builder.Services.InitializeMediaModule(databaseConnectionString, blobStorageRoot);
|
||||
// builder.Services.UseIdentityModule(databaseConnectionString);
|
||||
|
||||
builder.Services.AddControllers();
|
||||
|
||||
|
@ -36,6 +32,7 @@ builder.Services.AddCors(options =>
|
|||
}
|
||||
);
|
||||
});
|
||||
|
||||
builder
|
||||
.Services.AddControllers()
|
||||
.AddJsonOptions(options =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue