添加默认请求

This commit is contained in:
zpc 2025-07-27 15:34:58 +08:00
parent f39eaf4fc3
commit b0ebfceb93

View File

@ -257,7 +257,7 @@ try
NLogUtil.EnsureNlogConfig("NLog.config");
//其他项目启动时需要做的事情
NLogUtil.WriteAll(NLog.LogLevel.Trace, LogType.ApiRequest, "接口启动", "接口启动成功");
app.MapGet("/", () => "请求成功").WithName("默认请求");
app.Run();
}
catch (Exception ex)