lib/nzb (buildNzb, parseNzb) from the current app; NzbService builds a release's NZB from its chunks; GET /api/v1/releases?q= (every word of the name) and GET /api/v1/releases/:id/nzb behind the api guard. A test stores a batch, finds the release and reads its NZB back. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
45 lines
2.2 KiB
TypeScript
45 lines
2.2 KiB
TypeScript
import '@adonisjs/core/types/http'
|
|
|
|
type ParamValue = string | number | bigint | boolean
|
|
|
|
export type ScannedRoutes = {
|
|
ALL: {
|
|
'auth.new_account.store': { paramsTuple?: []; params?: {} }
|
|
'auth.access_tokens.store': { paramsTuple?: []; params?: {} }
|
|
'profile.profile.show': { paramsTuple?: []; params?: {} }
|
|
'profile.access_tokens.destroy': { paramsTuple?: []; params?: {} }
|
|
'releases.index': { paramsTuple?: []; params?: {} }
|
|
'releases.nzb': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.lease': { paramsTuple?: []; params?: {} }
|
|
'node.node.stream': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.batch': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.heartbeat': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.finish': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.release': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
}
|
|
GET: {
|
|
'profile.profile.show': { paramsTuple?: []; params?: {} }
|
|
'releases.index': { paramsTuple?: []; params?: {} }
|
|
'releases.nzb': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.stream': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
}
|
|
HEAD: {
|
|
'profile.profile.show': { paramsTuple?: []; params?: {} }
|
|
'releases.index': { paramsTuple?: []; params?: {} }
|
|
'releases.nzb': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.stream': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
}
|
|
POST: {
|
|
'auth.new_account.store': { paramsTuple?: []; params?: {} }
|
|
'auth.access_tokens.store': { paramsTuple?: []; params?: {} }
|
|
'profile.access_tokens.destroy': { paramsTuple?: []; params?: {} }
|
|
'node.node.lease': { paramsTuple?: []; params?: {} }
|
|
'node.node.batch': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.heartbeat': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.finish': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
'node.node.release': { paramsTuple: [ParamValue]; params: {'id': ParamValue} }
|
|
}
|
|
}
|
|
declare module '@adonisjs/core/types/http' {
|
|
export interface RoutesList extends ScannedRoutes {}
|
|
} |