feat: Add sorting API

Added POST /api/sort/subs, /api/sort/collections, /api/sort/artifacts for sorting subs, collections, and artifacts.
This commit is contained in:
Peng-YM
2022-07-05 12:41:25 +08:00
parent 84b4dba425
commit ce51674d6b
6 changed files with 45 additions and 10 deletions

View File

@@ -15,6 +15,7 @@ import registerArtifactRoutes from './artifacts';
import registerDownloadRoutes from './download';
import registerSettingRoutes from './settings';
import registerPreviewRoutes from './preview';
import registerSortingRoutes from './sort';
import { success } from '@/restful/response';
export default function serve() {
@@ -25,6 +26,7 @@ export default function serve() {
registerSubscriptionRoutes($app);
registerDownloadRoutes($app);
registerPreviewRoutes($app);
registerSortingRoutes($app);
registerSettingRoutes($app);
registerArtifactRoutes($app);