mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
add new routes: /api/tag/rows
This commit is contained in:
10
routes/api/tag/rows.ts
Normal file
10
routes/api/tag/rows.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Handlers } from "$fresh/server.ts";
|
||||
import { get_task_manager } from "../../../server.ts";
|
||||
import { return_data } from "../../../server/utils.ts";
|
||||
|
||||
export const handler: Handlers = {
|
||||
GET(_req, _ctx) {
|
||||
const m = get_task_manager();
|
||||
return return_data(m.db.get_tag_rows());
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user