Merge Request — Wave 0 quick wins + Tier-1/Tier-2 features #1
@@ -883,6 +883,10 @@ public sealed class ProfileCvController : ControllerBase
|
|||||||
return run;
|
return run;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Invoked by CvProcessingHostedService (this controller is also registered as a
|
||||||
|
// transient service). NonAction keeps it off the HTTP surface: without it the
|
||||||
|
// controller-level [Route] exposes it as an any-verb endpoint.
|
||||||
|
[NonAction]
|
||||||
public async Task ProcessQueuedRunAsync(int runId, CancellationToken cancellationToken)
|
public async Task ProcessQueuedRunAsync(int runId, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
var run = await _db.CvExtractionRuns.FirstOrDefaultAsync(x => x.Id == runId, cancellationToken);
|
var run = await _db.CvExtractionRuns.FirstOrDefaultAsync(x => x.Id == runId, cancellationToken);
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<Compile Remove="Controllers\**\*.cs" />
|
<Compile Remove="Controllers\**\*.cs" />
|
||||||
<Compile Remove="Services\**\*.cs" />
|
<Compile Remove="Services\**\*.cs" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.14" />
|
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.14" />
|
||||||
|
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="9.0.14" />
|
||||||
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0" />
|
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="9.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
@@ -112,6 +112,7 @@ builder.Services.AddCors(options =>
|
|||||||
|
|
||||||
// Add controllers
|
// Add controllers
|
||||||
builder.Services.AddControllers();
|
builder.Services.AddControllers();
|
||||||
|
builder.Services.AddOpenApi();
|
||||||
var dataRoot = (builder.Configuration["Data:Root"] ?? "").Trim();
|
var dataRoot = (builder.Configuration["Data:Root"] ?? "").Trim();
|
||||||
if (string.IsNullOrWhiteSpace(dataRoot))
|
if (string.IsNullOrWhiteSpace(dataRoot))
|
||||||
{
|
{
|
||||||
@@ -441,4 +442,10 @@ app.UseAuthentication();
|
|||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
|
// API schema for tooling/docs. Dev-only: not exposed in production deployments.
|
||||||
|
if (app.Environment.IsDevelopment())
|
||||||
|
{
|
||||||
|
app.MapOpenApi().AllowAnonymous();
|
||||||
|
}
|
||||||
|
|
||||||
app.Run();
|
app.Run();
|
||||||
|
|||||||
Reference in New Issue
Block a user