Replaces MVC with FastEndpoints in Lumina.Presentation.Api

This commit is contained in:
BinaryAlley committed 2024-10-23 21:34:10 +03:00
1 parent b1a20716df
commit c7b8bc2f1c
519 files changed
+15329 -8539

No files matched your search

@@ -0,0 +1,24 @@
#region ========================================================================= USING =====================================================================================
using Lumina.Application.Core.FileSystemManagement.Paths.Queries.ValidatePath;
using Lumina.Contracts.Requests.FileSystemManagement.Path;
#endregion
namespace Lumina.Application.Common.Mapping.FileSystemManagement.Paths;
/// <summary>
/// Extension methods for converting <see cref="ValidatePathRequest"/>.
/// </summary>
public static class ValidatePathRequestMapping
{
/// <summary>
/// Converts <paramref name="request"/> to <see cref="ValidatePathQuery"/>.
/// </summary>
/// <param name="request">The request to be converted.</param>
/// <returns>The converted query.</returns>
public static ValidatePathQuery ToQuery(this ValidatePathRequest request)
{
return new ValidatePathQuery(
request.Path
);
}
}