mirror of
https://github.com/alexhopeoconnor/bom-local-service.git
synced 2026-10-04 03:28:11 +10:00
Refactor SPA: extract CSS/JS to modular files, add static file serving, fix timestamp parsing
This commit is contained in:
@@ -30,6 +30,9 @@ if (enableHttpsRedirection)
|
||||
// Enable routing (required for CORS to work with controllers)
|
||||
app.UseRouting();
|
||||
|
||||
// Static files (for wwwroot assets like CSS, JS, images)
|
||||
app.UseStaticFiles();
|
||||
|
||||
// CORS middleware - MUST be after UseRouting but before MapControllers
|
||||
app.UseCors();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user