Skip to content

Commit

Permalink
Redesign Web Api Application
Browse files Browse the repository at this point in the history
  • Loading branch information
KTajerbashi committed Aug 3, 2024
1 parent 13b0d1e commit 32a79fd
Show file tree
Hide file tree
Showing 40 changed files with 669 additions and 729 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using MediatR;
using Microsoft.AspNetCore.Mvc;
using System.Net;
using WebApi.EndPoints.DIContainers;
using WebApi.EndPoints.HostExtensions.Providers.HttpAccessor;

namespace WebApi.EndPoints.BaseWebApi.Controllers;

Expand Down Expand Up @@ -128,4 +128,8 @@ protected async Task<IActionResult> Get<TQuery, TData>(TQuery query) where TQuer
return BadRequest(result.Messages);
}

protected async Task<IActionResult> ReturnResponse<TModel>(TModel model)
{
return await Task.FromResult(Ok(model));
}
}

This file was deleted.

11 changes: 0 additions & 11 deletions Src/4.EndPoints/WebApi.EndPoints/Controllers/HomeController.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
using MediatR;
using WebApi.EndPoints.BaseWebApi.Controllers;

namespace WebApi.EndPoints.Controllers.Account;
namespace WebApi.EndPoints.Controllers.Identity;

public class AccountController : BaseController
{
public AccountController(IMediator mediator) : base(mediator)
{
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
using MediatR;
using Microsoft.AspNetCore.Mvc;
using WebApi.EndPoints.BaseWebApi.Controllers;
using WebApi.EndPoints.Models.Identity.Authenticate;

namespace WebApi.EndPoints.Controllers.Identity;

public class AuthenticateController : BaseController
{
public AuthenticateController(IMediator mediator) : base(mediator)
{
}

}

Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using MediatR;
using WebApi.EndPoints.BaseWebApi.Controllers;

namespace WebApi.EndPoints.Controllers.Identity;

public class AuthorizationController : BaseController
{
public AuthorizationController(IMediator mediator) : base(mediator)
{
}
}

62 changes: 0 additions & 62 deletions Src/4.EndPoints/WebApi.EndPoints/Controllers/PersonController.cs

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 32a79fd

Please sign in to comment.