Skip to content

Commit

Permalink
add identity controllers folder & update GlobalUsings
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphoeninger committed Oct 20, 2024
1 parent 71c580c commit 79dbdb0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
2 changes: 2 additions & 0 deletions API/API.FileSharing/Controllers/FileItemsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ public class FileItemsController : BaseCrudController<FileItem, FileItemsControl
public FileItemsController(IAppLogging<FileItemsController> logger, IFileItemRepo repo) : base(logger, repo)
{
}

// TODO: put more individual Requests here
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Microsoft.AspNetCore.Identity;

namespace API.FileSharing.Controllers;
namespace API.FileSharing.Controllers.Identity;

[ApiController]
[Route("api/[controller]")]
Expand Down Expand Up @@ -46,7 +44,7 @@ public async Task<IResult> GetOneAsync(int id)
return Results.Ok(
new
{
Email = userDetails?.Email
userDetails?.Email
});
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace API.FileSharing.Controllers;
namespace API.FileSharing.Controllers.Identity;

public static class IdentityUserEndpoints
{
Expand Down
8 changes: 8 additions & 0 deletions API/API.FileSharing/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
global using API.FileSharing.ApiVersionSupport;
global using API.FileSharing.Swagger;
global using API.FileSharing.Swagger.Models;
global using API.FileSharing.Controllers;
global using API.FileSharing.Controllers.Base;
global using API.FileSharing.Controllers.Identity;
global using API.FileSharing.Extensions;
//global using API.FileSharing.Filters;
//global using API.FileSharing.Security;

Expand All @@ -14,6 +17,7 @@

global using MODELS.FileSharing.Entities;
global using MODELS.FileSharing.Entities.Base;
global using MODELS.FileSharing.Settings;

global using SERVICES.FileSharing.Utilities;
global using SERVICES.FileSharing.Logging.Interfaces;
Expand All @@ -29,9 +33,12 @@
global using Microsoft.OpenApi.Any;
global using Microsoft.OpenApi.Models;
global using Microsoft.AspNetCore.Authentication;
global using Microsoft.AspNetCore.Authentication.JwtBearer;
global using Microsoft.AspNetCore.Authorization;
global using Microsoft.AspNetCore.Mvc.Authorization;
global using Microsoft.AspNetCore.Identity;
global using Microsoft.AspNetCore.Identity.Data;
global using Microsoft.IdentityModel.Tokens;

global using Swashbuckle.AspNetCore.Annotations;
global using Swashbuckle.AspNetCore.SwaggerGen;
Expand All @@ -43,3 +50,4 @@
global using System.Security.Claims;
global using System.Text;
global using System.Text.Encodings.Web;
global using System.IdentityModel.Tokens.Jwt;

0 comments on commit 79dbdb0

Please sign in to comment.