🔧 getBundles endpoint WIP

This commit is contained in:
2024-10-21 18:04:16 -04:00
parent 55e0ce6d36
commit 68c2dacff4
3 changed files with 414 additions and 557 deletions

View File

@@ -105,14 +105,15 @@ export default class SocketService extends Service {
// );
},
// AirDCPP Socket actions
// the way this method is called has some unnecessary indirection
getBundles: {
async handler(
ctx: Context<{
comicObjectId: string;
}>
) {
// get bundles bitch
// 1. Get the comic object Id
rest: "GET /getBundles",
handler: async (ctx: Context<{ config: any; bundleId: string }>) => {
const { config, bundleId } = ctx.params;
console.log(config);
const ADCPPSocket = new AirDCPPSocket(config);
return await ADCPPSocket.get(`queue/bundles/${bundleId}`);
},
},
search: {