Separate the endpoints by new groups

This commit is contained in:
2024-08-22 12:49:33 -04:00
parent a85a47727e
commit 61b3096db8
11 changed files with 11 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ public class ChangeAboutHandler(
public override void Configure()
{
Post("/api/creators/{CreatorId}/about");
Options(o => o.WithTags("Contents"));
Options(o => o.WithTags("Creators"));
}
public override async Task HandleAsync(

View File

@@ -18,7 +18,7 @@ public class ChangeBannerHandler(
public override void Configure()
{
Post("/api/creators/{CreatorId}/banner");
Options(o => o.WithTags("Contents"));
Options(o => o.WithTags("Creators"));
AllowFileUploads();
}

View File

@@ -54,7 +54,7 @@ public class ChangeColorsHandler(
public override void Configure()
{
Post("/api/creators/{CreatorId}/colors");
Options(o => o.WithTags("Contents"));
Options(o => o.WithTags("Creators"));
}
public override async Task HandleAsync(ChangeColorsRequest request, CancellationToken ct)

View File

@@ -18,7 +18,7 @@ public class ChangeLogoHandler(
public override void Configure()
{
Post("/api/creators/{CreatorId}/logo");
Options(o => o.WithTags("Contents"));
Options(o => o.WithTags("Creators"));
AllowFileUploads();
}

View File

@@ -22,7 +22,7 @@ public class ChangeSocialsHandler(
public override void Configure()
{
Post("/api/creators/{CreatorId}/socials");
Options(o => o.WithTags("Contents"));
Options(o => o.WithTags("Creators"));
}
public override async Task HandleAsync(ChangeSocialsRequest request, CancellationToken ct)

View File

@@ -31,7 +31,7 @@ public sealed class CreateCreatorHandler(
public override void Configure()
{
Post("/api/creators");
Options(o => o.WithTags("Contents"));
Options(o => o.WithTags("Creators"));
}
public override async Task HandleAsync(

View File

@@ -29,7 +29,7 @@ public class GetCreatorByAliasHandler(
public override void Configure()
{
Get("/api/creators/@{Name}");
Options((o => o.WithTags("Contents")));
Options((o => o.WithTags("Creators")));
AllowAnonymous();
}

View File

@@ -28,7 +28,7 @@ public class GetCreatorByIdHandler(
public override void Configure()
{
Get("/api/creators/{CreatorId}");
Options((o => o.WithTags("Contents")));
Options((o => o.WithTags("Creators")));
AllowAnonymous();
}

View File

@@ -12,7 +12,7 @@ public class GetSubscriptionsHandler(
public override void Configure()
{
Get("/api/subscriptions");
Options((o => o.WithTags("Creators")));
Options((o => o.WithTags("Subscriptions")));
}
public override async Task HandleAsync(

View File

@@ -18,7 +18,7 @@ public sealed class SubscribeToCreatorHandler(
public override void Configure()
{
Post("/api/creators/{CreatorId}/subscribe");
Options((o => o.WithTags("Creators")));
Options((o => o.WithTags("Subscriptions")));
Description(x => x.Accepts<string>("*/*"));
}

View File

@@ -17,7 +17,7 @@ public class UnsubscribeFromCreatorHandler(
public override void Configure()
{
Post("/api/creators/{CreatorId}/unsubscribe");
Options((o => o.WithTags("Creators")));
Options((o => o.WithTags("Subscriptions")));
Description(x => x.Accepts<string>("*/*"));
}