InkForge/app/InkForge.Common/Microsoft/Extensions/DependencyInjection/InkForgeServiceCollection.cs
2024-02-09 01:23:38 +01:00

19 lines
444 B
C#

using InkForge.Common.Controllers;
using InkForge.Common.Data;
using InkForge.Data;
namespace Microsoft.Extensions.DependencyInjection;
public static class InkForgeServiceCollections
{
public static IServiceCollection AddInkForge(this IServiceCollection services)
{
services.AddHttpClient();
services.AddDbContextFactory<NoteDbContext, NoteDbContextFactory>();
services.AddSingleton<WorkspaceController>();
return services;
}
}