mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 12:11:10 +00:00
Moves metadata provider, artwork provider, and book reader choices into the add and update library requests, adds the library type lookups, removes the per-provider enable and reorder endpoints, and reconciles the stored configurations in one provider store call. Tightens library update and delete authorization to require ownership and the manage permission, and cleans up enum validation, comments, resource diacritics, and Razor imports.
34 lines
1.9 KiB
C#
34 lines
1.9 KiB
C#
namespace Lumina.Presentation.Api.Common.Routes.Library.Management;
|
|
|
|
/// <summary>
|
|
/// Class for the collection of routes defined in this API.
|
|
/// </summary>
|
|
public static partial class ApiRoutes
|
|
{
|
|
/// <summary>
|
|
/// Routes for the Libraries route.
|
|
/// </summary>
|
|
public static class Libraries
|
|
{
|
|
public const string GET_LIBRARY_BY_ID = "/libraries/{id}";
|
|
public const string GET_LIBRARIES = "/libraries";
|
|
public const string GET_ENABLED_LIBRARIES = "/libraries/enabled";
|
|
public const string ADD_LIBRARY = "/libraries";
|
|
public const string UPDATE_LIBRARY = "/libraries/{id}";
|
|
public const string DELETE_LIBRARY = "/libraries/{id}";
|
|
public const string SCAN_LIBRARIES = "/libraries/scans";
|
|
public const string SCAN_LIBRARY = "/libraries/{id}/scans";
|
|
public const string LIBRARY_SCAN_PROGRESS = "/libraries/{libraryId}/scans/{scanId}/progress";
|
|
public const string GET_RUNNING_LIBRARIES_SCAN = "/libraries/scans/running";
|
|
public const string CANCEL_LIBRARIES_SCAN = "/libraries/scans/cancel";
|
|
public const string CANCEL_LIBRARY_SCAN = "/libraries/{libraryId}/scans/{scanId}/cancel";
|
|
public const string GET_LIBRARY_METADATA_PROVIDERS = "/libraries/{libraryId}/metadata-providers";
|
|
public const string GET_LIBRARY_ARTWORK_PROVIDERS = "/libraries/{libraryId}/artwork-providers";
|
|
public const string GET_LIBRARY_PATH_TEMPLATE_PARTS = "/libraries/path-template-parts/{libraryType}";
|
|
public const string GET_LIBRARY_BOOK_READERS = "/libraries/{libraryId}/book-readers";
|
|
public const string GET_LIBRARY_TYPE_METADATA_PROVIDERS = "/libraries/metadata-providers/{libraryType}";
|
|
public const string GET_LIBRARY_TYPE_ARTWORK_PROVIDERS = "/libraries/artwork-providers/{libraryType}";
|
|
public const string GET_LIBRARY_TYPE_BOOK_READERS = "/libraries/book-readers/{libraryType}";
|
|
}
|
|
}
|