|
@@ -25,7 +25,8 @@ namespace DataVAPI |
|
|
public void ConfigureServices(IServiceCollection services) |
|
|
public void ConfigureServices(IServiceCollection services) |
|
|
{ |
|
|
{ |
|
|
SugarDb.Conn = Configuration["DbConnectionstring"].ToString(); |
|
|
SugarDb.Conn = Configuration["DbConnectionstring"].ToString(); |
|
|
|
|
|
|
|
|
|
|
|
DataBus.connStr = Configuration["mongoDB.connStr"].ToString(); |
|
|
|
|
|
DataBus.dbName = Configuration["mongoDB.dbName"].ToString(); |
|
|
//注册swagger服务 |
|
|
//注册swagger服务 |
|
|
services.AddSwaggerUp(); |
|
|
services.AddSwaggerUp(); |
|
|
services.AddControllers(); |
|
|
services.AddControllers(); |
|
|