swagger anpassen

This commit is contained in:
Tizian.Breuch
2025-07-29 18:16:42 +02:00
parent a9318b9700
commit 3907cba29d
3 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ namespace Webshop.Api.Controllers.Customer
} }
[ApiController] [ApiController]
[Route("api/v1/customer/[controller]")] // z.B. /api/v1/customer/profile [Route("api/v1/[controller]")] // z.B. /api/v1/customer/profile
[Authorize(Roles = "Customer")] [Authorize(Roles = "Customer")]
public class CustomerController : ControllerBase public class CustomerController : ControllerBase
{ {

View File

@@ -12,8 +12,8 @@ using Webshop.Infrastructure.Data;
namespace Webshop.Infrastructure.Migrations namespace Webshop.Infrastructure.Migrations
{ {
[DbContext(typeof(ApplicationDbContext))] [DbContext(typeof(ApplicationDbContext))]
[Migration("20250729124654_InitalCreate")] [Migration("20250729160557_InitialCreate")]
partial class InitalCreate partial class InitialCreate
{ {
/// <inheritdoc /> /// <inheritdoc />
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)

View File

@@ -7,7 +7,7 @@ using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
namespace Webshop.Infrastructure.Migrations namespace Webshop.Infrastructure.Migrations
{ {
/// <inheritdoc /> /// <inheritdoc />
public partial class InitalCreate : Migration public partial class InitialCreate : Migration
{ {
/// <inheritdoc /> /// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder) protected override void Up(MigrationBuilder migrationBuilder)