Adds an `.editorconfig` file with C# and project-specific conventions. Applies consistent indentation and formatting across backend handlers, runtime models, and AI services.
16 lines
402 B
C#
16 lines
402 B
C#
using FastEndpoints;
|
|
|
|
namespace SpaceGame.Api.Universe.Api;
|
|
|
|
public sealed class ResetWorldHandler(WorldService worldService) : EndpointWithoutRequest
|
|
{
|
|
public override void Configure()
|
|
{
|
|
Post("/api/world/reset");
|
|
AllowAnonymous();
|
|
}
|
|
|
|
public override Task HandleAsync(CancellationToken cancellationToken) =>
|
|
SendOkAsync(worldService.Reset(), cancellationToken);
|
|
}
|