|
@@ -49,16 +49,16 @@ internal static class StartupExtensions
|
|
|
services.RegisterAuthentication(configuration);
|
|
|
|
|
|
services.AddControllers(options =>
|
|
|
- {
|
|
|
- options.Filters.Add<UnifyResponseFilter>();
|
|
|
- options.Filters.Add<UserFriendlyExceptionFilter>();
|
|
|
- })
|
|
|
- // .AddDapr(d =>
|
|
|
- // {
|
|
|
- //#if DEBUG
|
|
|
- // d.UseHttpEndpoint("http://192.168.100.223:50112");
|
|
|
- //#endif
|
|
|
- // })
|
|
|
+ {
|
|
|
+ options.Filters.Add<UnifyResponseFilter>();
|
|
|
+ options.Filters.Add<UserFriendlyExceptionFilter>();
|
|
|
+ })
|
|
|
+ .AddDapr(d =>
|
|
|
+ {
|
|
|
+#if DEBUG
|
|
|
+ d.UseHttpEndpoint("http://110.188.24.28:50105");
|
|
|
+#endif
|
|
|
+ })
|
|
|
;
|
|
|
|
|
|
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|