diff --git a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs index 93452ff..5be63a4 100644 --- a/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs +++ b/Falcon.SugarApi/ApiDefinistions/ApiControllerBase.cs @@ -29,6 +29,12 @@ namespace Falcon.SugarApi.ApiDefinistions /// Sugar数据库 /// public SugarDbContext SugarDb { get; set; } + + /// + /// 应用程序跟目录 + /// + public string AppPath { get => AppDomain.CurrentDomain.BaseDirectory; } + /// /// 获取请求的方法前缀 ///