public async get()

in src/endpoints/ChaptersEndpoints.ts [10:20]


    public async get(idOrIds: string | string[], market: ChapterMarket) {
        if (typeof idOrIds === 'string') {
            const params = this.paramsFor({ market });
            return this.getRequest<Chapter>(`chapters/${idOrIds}${params}`);
        }

        // TODO: Only returns top 50, validate / pre-check here
        const params = this.paramsFor({ ids: idOrIds, market });
        const response = await this.getRequest<Chapters>(`chapters${params}`);
        return response.chapters;
    }