Skip to content

Commit

Permalink
Move API modules
Browse files Browse the repository at this point in the history
  • Loading branch information
gritcsenko committed Feb 7, 2023
1 parent c1b4505 commit 264f191
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
using HomeInventory.Domain.Errors;
using HomeInventory.Domain.ValueObjects;
using HomeInventory.Tests.Helpers;
using HomeInventory.Web;
using HomeInventory.Web.Modules;
using MediatR;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.HttpResults;
Expand Down
1 change: 1 addition & 0 deletions src/HomeInventory/HomeInventory.Web/DependencyInjection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
using HomeInventory.Web.Configuration.Validation;
using HomeInventory.Web.Infrastructure;
using HomeInventory.Web.Middleware;
using HomeInventory.Web.Modules;
using HomeInventory.Web.OpenApi;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.Authorization;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Routing;

namespace HomeInventory.Web;
namespace HomeInventory.Web.Modules;

internal abstract class ApiModule : CarterModule
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Routing;

namespace HomeInventory.Web;
namespace HomeInventory.Web.Modules;

internal class AreaModule : ApiModule
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
using HomeInventory.Application.Authentication.Commands.Register;
using HomeInventory.Application.Authentication.Queries.Authenticate;
using HomeInventory.Contracts;
using HomeInventory.Web.Authorization.Dynamic;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;

namespace HomeInventory.Web;
namespace HomeInventory.Web.Modules;

internal class AuthenticationModule : ApiModule
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Routing;

namespace HomeInventory.Web;
namespace HomeInventory.Web.Modules;

internal class PermissionModule : ApiModule
{
Expand Down

0 comments on commit 264f191

Please sign in to comment.