This commit is contained in:
2025-07-19 16:18:09 +08:00
parent 6e28b59d6f
commit 556b31d02d
6 changed files with 1034 additions and 1474 deletions
+3 -6
View File
@@ -5,7 +5,7 @@ using Hi.Webapi.Services;
namespace Hi.Webapi
{
public class Program
class Program
{
public static void Main(string[] args)
{
@@ -65,8 +65,8 @@ namespace Hi.Webapi
// 在開發環境中不使用 HTTPS 重定向
// app.UseHttpsRedirection();
// 添加靜態文件支援
app.UseStaticFiles();
//// 添加靜態文件支援
//app.UseStaticFiles();
app.UseCors("AllowAll");
@@ -77,9 +77,6 @@ namespace Hi.Webapi
// 映射 SignalR Hub
app.MapHub<RenderingHub>("/renderingHub");
// 添加一個簡單的首頁
app.MapGet("/", () => Results.Redirect("/demo-vue.html"));
app.Run();
}
}