17 lines
498 B
C#
17 lines
498 B
C#
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace RecNet.Application;
|
|
|
|
public static class DependencyInjection
|
|
{
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
{
|
|
services.AddAutoMapper(_ => { }, typeof(DependencyInjection).Assembly);
|
|
|
|
// Usually there would be CQRS, but I'm rushing out this server, so I didn't feel like adding it.
|
|
// Enjoy a VERY barebones application layer :D
|
|
|
|
return services;
|
|
}
|
|
}
|