Skip to content

Commit

Permalink
🔧 Display the calling assembly info, by default. (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
PureKrome authored Aug 19, 2020
1 parent 0ea0292 commit f46a516
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OpenApi.Models;
using System;
using System.Reflection;

namespace Homely.AspNetCore.Mvc.Helpers.Extensions
{
Expand Down Expand Up @@ -72,7 +73,7 @@ public static IServiceCollection AddDefaultWebApiSettings(this IServiceCollectio
Func<ApiDescription, string> operationIdSelector = null)
{
services.AddControllers()
.AddAHomeController(services, banner)
.AddAHomeController(services, banner, Assembly.GetCallingAssembly())
.AddDefaultJsonOptions(isJsonIndented, jsonDateTimeFormat);

services.AddProblemDetails(options =>
Expand Down

0 comments on commit f46a516

Please sign in to comment.