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,17 @@
namespace Lumina.Presentation.Api.Common.Routes.FileSystemManagement;
/// <summary>
/// Class for the collection of routes defined in this API.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the Directories route.
/// </summary>
public static class Directories
{
public const string GET_DIRECTORY_TREE = "/directories/get-directory-tree";
public const string GET_TREE_DIRECTORIES = "/directories/get-tree-directories";
public const string GET_DIRECTORIES = "/directories/get-directories";
}
}
@@ -0,0 +1,15 @@
namespace Lumina.Presentation.Api.Common.Routes.FileSystemManagement;
/// <summary>
/// Class for the collection of routes defined in this API.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the Drives route.
/// </summary>
public static class Drives
{
public const string GET_DRIVES = "/drives/get-drives";
}
}
@@ -0,0 +1,15 @@
namespace Lumina.Presentation.Api.Common.Routes.FileSystemManagement;
/// <summary>
/// Class for the collection of routes defined in this API.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the FileSystem route.
/// </summary>
public static class FileSystem
{
public const string GET_TYPES = "/file-system/get-type";
}
}
@@ -0,0 +1,16 @@
namespace Lumina.Presentation.Api.Common.Routes.FileSystemManagement;
/// <summary>
/// Class for the collection of routes defined in this API.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the Files route.
/// </summary>
public static class Files
{
public const string GET_TREE_FILES = "/files/get-tree-files";
public const string GET_FILES = "/files/get-files";
}
}
@@ -0,0 +1,21 @@
namespace Lumina.Presentation.Api.Common.Routes.FileSystemManagement;
/// <summary>
/// Class for the collection of routes defined in this API.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the Path route.
/// </summary>
public static class Path
{
public const string GET_PATH_ROOT = "/path/get-path-root";
public const string GET_PATH_SEPARATOR = "/path/get-path-separator";
public const string GET_PATH_PARENT = "/path/get-path-parent";
public const string COMBINE = "/path/combine";
public const string SPLIT = "/path/split";
public const string VALIDATE = "/path/validate";
public const string CHECK_PATH_EXISTS = "/path/check-path-exists";
}
}
@@ -0,0 +1,15 @@
namespace Lumina.Presentation.Api.Common.Routes.FileSystemManagement;
/// <summary>
/// Class for the collection of routes defined in this API.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the Thumbnails route.
/// </summary>
public static class Thumbnails
{
public const string GET_THUMBNAIL = "/thumbnails/get-thumbnail";
}
}
@@ -0,0 +1,15 @@
namespace Lumina.Presentation.Api.Common.Routes.FileSystemManagement;
/// <summary>
/// Class for the collection of routes defined in this API.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the Health route.
/// </summary>
public static class Health
{
public const string CHECK_HEALTH = "/check-health";
}
}
@@ -0,0 +1,17 @@
namespace Lumina.Presentation.Api.Common.Routes.WrittenContentLibrary.BookLibrary;
/// <summary>
/// Class for the collection of routes defined in this API.
/// </summary>
public static partial class ApiRoutes
{
/// <summary>
/// Routes for the Books route.
/// </summary>
public static class Books
{
public const string GET_BOOK_BY_ID = "/books/{id}";
public const string GET_BOOKS = "/books";
public const string ADD_BOOK = "/books";
}
}