diff --git a/TimetableDesigner.API.Services.Authentication.DTO/AuthenticatePasswordRequest.cs b/TimetableDesigner.API.Services.Authentication.DTO/AuthenticatePasswordRequest.cs deleted file mode 100644 index b24daec..0000000 --- a/TimetableDesigner.API.Services.Authentication.DTO/AuthenticatePasswordRequest.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace TimetableDesigner.API.Services.Authentication.DTO; - -public class AuthenticatePasswordRequest -{ - -} \ No newline at end of file diff --git a/TimetableDesigner.API.Services.Authentication.DTO/AuthenticateResponse.cs b/TimetableDesigner.API.Services.Authentication.DTO/AuthenticateResponse.cs deleted file mode 100644 index ef7ed7f..0000000 --- a/TimetableDesigner.API.Services.Authentication.DTO/AuthenticateResponse.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace TimetableDesigner.API.Services.Authentication.DTO; - -public class AuthenticateResponse -{ - -} \ No newline at end of file diff --git a/TimetableDesigner.API.Services.Authentication.DTO/AuthenticateTokenRequest.cs b/TimetableDesigner.API.Services.Authentication.DTO/AuthenticateTokenRequest.cs deleted file mode 100644 index 1146d1d..0000000 --- a/TimetableDesigner.API.Services.Authentication.DTO/AuthenticateTokenRequest.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace TimetableDesigner.API.Services.Authentication.DTO; - -public class AuthenticateTokenRequest -{ - -} \ No newline at end of file diff --git a/TimetableDesigner.API.Services.Authentication.DTO/RegisterRequest.cs b/TimetableDesigner.API.Services.Authentication.DTO/RegisterRequest.cs deleted file mode 100644 index 2cdb45d..0000000 --- a/TimetableDesigner.API.Services.Authentication.DTO/RegisterRequest.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace TimetableDesigner.API.Services.Authentication.DTO; - -public class RegisterRequest -{ - -} \ No newline at end of file diff --git a/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticatePasswordRequest.cs b/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticatePasswordRequest.cs new file mode 100644 index 0000000..7b66b8f --- /dev/null +++ b/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticatePasswordRequest.cs @@ -0,0 +1,8 @@ +namespace TimetableDesigner.Backend.Services.Authentication.DTO; + +public class AuthenticatePasswordRequest +{ + public string Email { get; set; } = null!; + public string Password { get; set; } = null!; + public bool RememberMe { get; set; } +} \ No newline at end of file diff --git a/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticateResponse.cs b/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticateResponse.cs new file mode 100644 index 0000000..219f03f --- /dev/null +++ b/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticateResponse.cs @@ -0,0 +1,7 @@ +namespace TimetableDesigner.Backend.Services.Authentication.DTO; + +public class AuthenticateResponse +{ + public string AccessToken { get; set; } = null!; + public string RefreshToken { get; set; } = null!; +} \ No newline at end of file diff --git a/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticateTokenRequest.cs b/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticateTokenRequest.cs new file mode 100644 index 0000000..08496d9 --- /dev/null +++ b/TimetableDesigner.Backend.Services.Authentication.DTO/AuthenticateTokenRequest.cs @@ -0,0 +1,7 @@ +namespace TimetableDesigner.Backend.Services.Authentication.DTO; + +public class AuthenticateTokenRequest +{ + public string AccessToken { get; set; } = null!; + public string RefreshToken { get; set; } = null!; +} \ No newline at end of file diff --git a/TimetableDesigner.Backend.Services.Authentication.DTO/RegisterRequest.cs b/TimetableDesigner.Backend.Services.Authentication.DTO/RegisterRequest.cs new file mode 100644 index 0000000..42f621f --- /dev/null +++ b/TimetableDesigner.Backend.Services.Authentication.DTO/RegisterRequest.cs @@ -0,0 +1,8 @@ +namespace TimetableDesigner.Backend.Services.Authentication.DTO; + +public class RegisterRequest +{ + public string Email { get; set; } = null!; + public string Password { get; set; } = null!; + public string PasswordConfirmation { get; set; } = null!; +} \ No newline at end of file diff --git a/TimetableDesigner.Backend.Services.Authentication.DTO/RegisterResponse.cs b/TimetableDesigner.Backend.Services.Authentication.DTO/RegisterResponse.cs new file mode 100644 index 0000000..bb53912 --- /dev/null +++ b/TimetableDesigner.Backend.Services.Authentication.DTO/RegisterResponse.cs @@ -0,0 +1,6 @@ +namespace TimetableDesigner.Backend.Services.Authentication.DTO; + +public class RegisterResponse +{ + +} \ No newline at end of file diff --git a/TimetableDesigner.API.Services.Authentication.DTO/TimetableDesigner.API.Services.Authentication.DTO.csproj b/TimetableDesigner.Backend.Services.Authentication.DTO/TimetableDesigner.Backend.Services.Authentication.DTO.csproj similarity index 100% rename from TimetableDesigner.API.Services.Authentication.DTO/TimetableDesigner.API.Services.Authentication.DTO.csproj rename to TimetableDesigner.Backend.Services.Authentication.DTO/TimetableDesigner.Backend.Services.Authentication.DTO.csproj diff --git a/TimetableDesigner.API.Services.Authentication.sln b/TimetableDesigner.Backend.Services.Authentication.sln similarity index 73% rename from TimetableDesigner.API.Services.Authentication.sln rename to TimetableDesigner.Backend.Services.Authentication.sln index 0c6751d..025f8ef 100644 --- a/TimetableDesigner.API.Services.Authentication.sln +++ b/TimetableDesigner.Backend.Services.Authentication.sln @@ -1,8 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimetableDesigner.API.Services.Authentication", "TimetableDesigner.API.Services.Authentication/TimetableDesigner.API.Services.Authentication.csproj", "{F8C0AEF3-B53F-4904-90F7-EE4A8587F023}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimetableDesigner.Backend.Services.Authentication", "TimetableDesigner.Backend.Services.Authentication\TimetableDesigner.Backend.Services.Authentication.csproj", "{F8C0AEF3-B53F-4904-90F7-EE4A8587F023}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimetableDesigner.API.Services.Authentication.DTO", "TimetableDesigner.API.Services.Authentication.DTO\TimetableDesigner.API.Services.Authentication.DTO.csproj", "{384C8036-ACA7-40EB-924D-5E0271BEDB09}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TimetableDesigner.Backend.Services.Authentication.DTO", "TimetableDesigner.Backend.Services.Authentication.DTO\TimetableDesigner.Backend.Services.Authentication.DTO.csproj", "{384C8036-ACA7-40EB-924D-5E0271BEDB09}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/TimetableDesigner.API.Services.Authentication/.dockerignore b/TimetableDesigner.Backend.Services.Authentication/.dockerignore similarity index 100% rename from TimetableDesigner.API.Services.Authentication/.dockerignore rename to TimetableDesigner.Backend.Services.Authentication/.dockerignore diff --git a/TimetableDesigner.API.Services.Authentication/API/Endpoints.cs b/TimetableDesigner.Backend.Services.Authentication/API/Endpoints.cs similarity index 61% rename from TimetableDesigner.API.Services.Authentication/API/Endpoints.cs rename to TimetableDesigner.Backend.Services.Authentication/API/Endpoints.cs index 9dfbd15..1e9109e 100644 --- a/TimetableDesigner.API.Services.Authentication/API/Endpoints.cs +++ b/TimetableDesigner.Backend.Services.Authentication/API/Endpoints.cs @@ -1,7 +1,8 @@ using Microsoft.AspNetCore.Http.HttpResults; -using TimetableDesigner.API.Services.Authentication.DTO; +using TimetableDesigner.Backend.Services.Authentication.Application.Register; +using TimetableDesigner.Backend.Services.Authentication.DTO; -namespace TimetableDesigner.API.Services.Authentication.API; +namespace TimetableDesigner.Backend.Services.Authentication.API; public static class Endpoints { @@ -17,9 +18,11 @@ public static class Endpoints return app; } - public static async Task, ProblemHttpResult>> Register(RegisterRequest request) + public static async Task, ProblemHttpResult>> Register(RegisterRequest request, RegisterHandler handler) { - return null; + RegisterCommand command = request.ToCommand(); + RegisterResponse account = await handler.HandleAsync(command); + return Results.Created($"accounts/{account.Id}", account); } public static async Task, ProblemHttpResult>> AuthenticatePassword(AuthenticatePasswordRequest request) diff --git a/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterCommand.cs b/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterCommand.cs new file mode 100644 index 0000000..8e53983 --- /dev/null +++ b/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterCommand.cs @@ -0,0 +1,3 @@ +namespace TimetableDesigner.Backend.Services.Authentication.Application.Register; + +public record RegisterCommand(string Email, string Password); \ No newline at end of file diff --git a/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterHandler.cs b/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterHandler.cs new file mode 100644 index 0000000..e8eec35 --- /dev/null +++ b/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterHandler.cs @@ -0,0 +1,19 @@ +using TimetableDesigner.Backend.Services.Authentication.Database; +using TimetableDesigner.Backend.Services.Authentication.DTO; + +namespace TimetableDesigner.Backend.Services.Authentication.Application.Register; + +public class RegisterHandler +{ + private readonly DatabaseContext _databaseContext; + + public RegisterHandler(DatabaseContext databaseContext) + { + _databaseContext = databaseContext; + } + + public async Task HandleAsync(RegisterCommand command) + { + return null; + } +} \ No newline at end of file diff --git a/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterRequestMapper.cs b/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterRequestMapper.cs new file mode 100644 index 0000000..cde2fcc --- /dev/null +++ b/TimetableDesigner.Backend.Services.Authentication/Application/Register/RegisterRequestMapper.cs @@ -0,0 +1,8 @@ +using TimetableDesigner.Backend.Services.Authentication.DTO; + +namespace TimetableDesigner.Backend.Services.Authentication.Application.Register; + +public static class RegisterRequestMapper +{ + public static RegisterCommand ToCommand(this RegisterRequest request) => new RegisterCommand(request.Email, request.Password); +} \ No newline at end of file diff --git a/TimetableDesigner.API.Services.Authentication/Database/Configuration/AccountConfiguration.cs b/TimetableDesigner.Backend.Services.Authentication/Database/Configuration/AccountConfiguration.cs similarity index 86% rename from TimetableDesigner.API.Services.Authentication/Database/Configuration/AccountConfiguration.cs rename to TimetableDesigner.Backend.Services.Authentication/Database/Configuration/AccountConfiguration.cs index acd2493..9063258 100644 --- a/TimetableDesigner.API.Services.Authentication/Database/Configuration/AccountConfiguration.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Database/Configuration/AccountConfiguration.cs @@ -1,8 +1,8 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -using TimetableDesigner.API.Services.Authentication.Database.Model; +using TimetableDesigner.Backend.Services.Authentication.Database.Model; -namespace TimetableDesigner.API.Services.Authentication.Database.Configuration; +namespace TimetableDesigner.Backend.Services.Authentication.Database.Configuration; public class AccountConfiguration : IEntityTypeConfiguration { diff --git a/TimetableDesigner.API.Services.Authentication/Database/Configuration/RefreshTokenConfiguration.cs b/TimetableDesigner.Backend.Services.Authentication/Database/Configuration/RefreshTokenConfiguration.cs similarity index 85% rename from TimetableDesigner.API.Services.Authentication/Database/Configuration/RefreshTokenConfiguration.cs rename to TimetableDesigner.Backend.Services.Authentication/Database/Configuration/RefreshTokenConfiguration.cs index d5c7293..73140c9 100644 --- a/TimetableDesigner.API.Services.Authentication/Database/Configuration/RefreshTokenConfiguration.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Database/Configuration/RefreshTokenConfiguration.cs @@ -1,8 +1,8 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; -using TimetableDesigner.API.Services.Authentication.Database.Model; +using TimetableDesigner.Backend.Services.Authentication.Database.Model; -namespace TimetableDesigner.API.Services.Authentication.Database.Configuration; +namespace TimetableDesigner.Backend.Services.Authentication.Database.Configuration; public class RefreshTokenConfiguration : IEntityTypeConfiguration { diff --git a/TimetableDesigner.API.Services.Authentication/Database/DatabaseContext.cs b/TimetableDesigner.Backend.Services.Authentication/Database/DatabaseContext.cs similarity index 82% rename from TimetableDesigner.API.Services.Authentication/Database/DatabaseContext.cs rename to TimetableDesigner.Backend.Services.Authentication/Database/DatabaseContext.cs index 75173ce..2ef02d4 100644 --- a/TimetableDesigner.API.Services.Authentication/Database/DatabaseContext.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Database/DatabaseContext.cs @@ -1,8 +1,8 @@ using System.Reflection; using Microsoft.EntityFrameworkCore; -using TimetableDesigner.API.Services.Authentication.Database.Model; +using TimetableDesigner.Backend.Services.Authentication.Database.Model; -namespace TimetableDesigner.API.Services.Authentication.Database; +namespace TimetableDesigner.Backend.Services.Authentication.Database; public class DatabaseContext : DbContext { diff --git a/TimetableDesigner.API.Services.Authentication/Database/Migrations/20250924120541_Initial.Designer.cs b/TimetableDesigner.Backend.Services.Authentication/Database/Migrations/20250924120541_Initial.Designer.cs similarity index 83% rename from TimetableDesigner.API.Services.Authentication/Database/Migrations/20250924120541_Initial.Designer.cs rename to TimetableDesigner.Backend.Services.Authentication/Database/Migrations/20250924120541_Initial.Designer.cs index 0eec242..ceb87fd 100644 --- a/TimetableDesigner.API.Services.Authentication/Database/Migrations/20250924120541_Initial.Designer.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Database/Migrations/20250924120541_Initial.Designer.cs @@ -5,11 +5,11 @@ using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using TimetableDesigner.API.Services.Authentication.Database; +using TimetableDesigner.Backend.Services.Authentication.Database; #nullable disable -namespace TimetableDesigner.API.Services.Authentication.Database.Migrations +namespace TimetableDesigner.Backend.Services.Authentication.Database.Migrations { [DbContext(typeof(DatabaseContext))] [Migration("20250924120541_Initial")] @@ -25,7 +25,7 @@ namespace TimetableDesigner.API.Services.Authentication.Database.Migrations NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("TimetableDesigner.API.Services.Authentication.Database.Model.Account", b => + modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -67,7 +67,7 @@ namespace TimetableDesigner.API.Services.Authentication.Database.Migrations b.ToTable("Accounts"); }); - modelBuilder.Entity("TimetableDesigner.API.Services.Authentication.Database.Model.RefreshToken", b => + modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.RefreshToken", b => { b.Property("Token") .ValueGeneratedOnAdd() @@ -98,9 +98,9 @@ namespace TimetableDesigner.API.Services.Authentication.Database.Migrations b.ToTable("RefreshTokens"); }); - modelBuilder.Entity("TimetableDesigner.API.Services.Authentication.Database.Model.RefreshToken", b => + modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.RefreshToken", b => { - b.HasOne("TimetableDesigner.API.Services.Authentication.Database.Model.Account", "Account") + b.HasOne("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", "Account") .WithMany("RefreshTokens") .HasForeignKey("AccountId") .OnDelete(DeleteBehavior.Cascade) @@ -109,7 +109,7 @@ namespace TimetableDesigner.API.Services.Authentication.Database.Migrations b.Navigation("Account"); }); - modelBuilder.Entity("TimetableDesigner.API.Services.Authentication.Database.Model.Account", b => + modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", b => { b.Navigation("RefreshTokens"); }); diff --git a/TimetableDesigner.API.Services.Authentication/Database/Migrations/20250924120541_Initial.cs b/TimetableDesigner.Backend.Services.Authentication/Database/Migrations/20250924120541_Initial.cs similarity index 97% rename from TimetableDesigner.API.Services.Authentication/Database/Migrations/20250924120541_Initial.cs rename to TimetableDesigner.Backend.Services.Authentication/Database/Migrations/20250924120541_Initial.cs index 860d197..3a27386 100644 --- a/TimetableDesigner.API.Services.Authentication/Database/Migrations/20250924120541_Initial.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Database/Migrations/20250924120541_Initial.cs @@ -4,7 +4,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; #nullable disable -namespace TimetableDesigner.API.Services.Authentication.Database.Migrations +namespace TimetableDesigner.Backend.Services.Authentication.Database.Migrations { /// public partial class Initial : Migration diff --git a/TimetableDesigner.API.Services.Authentication/Database/Migrations/DatabaseContextModelSnapshot.cs b/TimetableDesigner.Backend.Services.Authentication/Database/Migrations/DatabaseContextModelSnapshot.cs similarity index 83% rename from TimetableDesigner.API.Services.Authentication/Database/Migrations/DatabaseContextModelSnapshot.cs rename to TimetableDesigner.Backend.Services.Authentication/Database/Migrations/DatabaseContextModelSnapshot.cs index 811d7b3..63e4122 100644 --- a/TimetableDesigner.API.Services.Authentication/Database/Migrations/DatabaseContextModelSnapshot.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Database/Migrations/DatabaseContextModelSnapshot.cs @@ -4,11 +4,11 @@ using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; -using TimetableDesigner.API.Services.Authentication.Database; +using TimetableDesigner.Backend.Services.Authentication.Database; #nullable disable -namespace TimetableDesigner.API.Services.Authentication.Database.Migrations +namespace TimetableDesigner.Backend.Services.Authentication.Database.Migrations { [DbContext(typeof(DatabaseContext))] partial class DatabaseContextModelSnapshot : ModelSnapshot @@ -22,7 +22,7 @@ namespace TimetableDesigner.API.Services.Authentication.Database.Migrations NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder); - modelBuilder.Entity("TimetableDesigner.API.Services.Authentication.Database.Model.Account", b => + modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -64,7 +64,7 @@ namespace TimetableDesigner.API.Services.Authentication.Database.Migrations b.ToTable("Accounts"); }); - modelBuilder.Entity("TimetableDesigner.API.Services.Authentication.Database.Model.RefreshToken", b => + modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.RefreshToken", b => { b.Property("Token") .ValueGeneratedOnAdd() @@ -95,9 +95,9 @@ namespace TimetableDesigner.API.Services.Authentication.Database.Migrations b.ToTable("RefreshTokens"); }); - modelBuilder.Entity("TimetableDesigner.API.Services.Authentication.Database.Model.RefreshToken", b => + modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.RefreshToken", b => { - b.HasOne("TimetableDesigner.API.Services.Authentication.Database.Model.Account", "Account") + b.HasOne("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", "Account") .WithMany("RefreshTokens") .HasForeignKey("AccountId") .OnDelete(DeleteBehavior.Cascade) @@ -106,7 +106,7 @@ namespace TimetableDesigner.API.Services.Authentication.Database.Migrations b.Navigation("Account"); }); - modelBuilder.Entity("TimetableDesigner.API.Services.Authentication.Database.Model.Account", b => + modelBuilder.Entity("TimetableDesigner.Backend.Services.Authentication.Database.Model.Account", b => { b.Navigation("RefreshTokens"); }); diff --git a/TimetableDesigner.API.Services.Authentication/Database/Model/Account.cs b/TimetableDesigner.Backend.Services.Authentication/Database/Model/Account.cs similarity index 84% rename from TimetableDesigner.API.Services.Authentication/Database/Model/Account.cs rename to TimetableDesigner.Backend.Services.Authentication/Database/Model/Account.cs index 674fb3c..827e7f1 100644 --- a/TimetableDesigner.API.Services.Authentication/Database/Model/Account.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Database/Model/Account.cs @@ -1,4 +1,4 @@ -namespace TimetableDesigner.API.Services.Authentication.Database.Model; +namespace TimetableDesigner.Backend.Services.Authentication.Database.Model; public class Account { diff --git a/TimetableDesigner.API.Services.Authentication/Database/Model/RefreshToken.cs b/TimetableDesigner.Backend.Services.Authentication/Database/Model/RefreshToken.cs similarity index 79% rename from TimetableDesigner.API.Services.Authentication/Database/Model/RefreshToken.cs rename to TimetableDesigner.Backend.Services.Authentication/Database/Model/RefreshToken.cs index 6697a98..c0ddc84 100644 --- a/TimetableDesigner.API.Services.Authentication/Database/Model/RefreshToken.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Database/Model/RefreshToken.cs @@ -1,4 +1,4 @@ -namespace TimetableDesigner.API.Services.Authentication.Database.Model; +namespace TimetableDesigner.Backend.Services.Authentication.Database.Model; public class RefreshToken { diff --git a/TimetableDesigner.API.Services.Authentication/Dockerfile b/TimetableDesigner.Backend.Services.Authentication/Dockerfile similarity index 100% rename from TimetableDesigner.API.Services.Authentication/Dockerfile rename to TimetableDesigner.Backend.Services.Authentication/Dockerfile diff --git a/TimetableDesigner.API.Services.Authentication/Program.cs b/TimetableDesigner.Backend.Services.Authentication/Program.cs similarity index 90% rename from TimetableDesigner.API.Services.Authentication/Program.cs rename to TimetableDesigner.Backend.Services.Authentication/Program.cs index b468675..be6e8ca 100644 --- a/TimetableDesigner.API.Services.Authentication/Program.cs +++ b/TimetableDesigner.Backend.Services.Authentication/Program.cs @@ -1,8 +1,8 @@ using Microsoft.EntityFrameworkCore; -using TimetableDesigner.API.Services.Authentication.API; -using TimetableDesigner.API.Services.Authentication.Database; +using TimetableDesigner.Backend.Services.Authentication.API; +using TimetableDesigner.Backend.Services.Authentication.Database; -namespace TimetableDesigner.API.Services.Authentication; +namespace TimetableDesigner.Backend.Services.Authentication; public static class Program { diff --git a/TimetableDesigner.API.Services.Authentication/Properties/launchSettings.json b/TimetableDesigner.Backend.Services.Authentication/Properties/launchSettings.json similarity index 100% rename from TimetableDesigner.API.Services.Authentication/Properties/launchSettings.json rename to TimetableDesigner.Backend.Services.Authentication/Properties/launchSettings.json diff --git a/TimetableDesigner.API.Services.Authentication/TimetableDesigner.API.Services.Authentication.csproj b/TimetableDesigner.Backend.Services.Authentication/TimetableDesigner.Backend.Services.Authentication.csproj similarity index 84% rename from TimetableDesigner.API.Services.Authentication/TimetableDesigner.API.Services.Authentication.csproj rename to TimetableDesigner.Backend.Services.Authentication/TimetableDesigner.Backend.Services.Authentication.csproj index e26f049..dc3bf08 100644 --- a/TimetableDesigner.API.Services.Authentication/TimetableDesigner.API.Services.Authentication.csproj +++ b/TimetableDesigner.Backend.Services.Authentication/TimetableDesigner.Backend.Services.Authentication.csproj @@ -21,7 +21,7 @@ - + diff --git a/TimetableDesigner.API.Services.Authentication/appsettings.json b/TimetableDesigner.Backend.Services.Authentication/appsettings.json similarity index 100% rename from TimetableDesigner.API.Services.Authentication/appsettings.json rename to TimetableDesigner.Backend.Services.Authentication/appsettings.json