tune
This commit is contained in:
+3
-6
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user