We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a97d7b9 commit c92aa87Copy full SHA for c92aa87
src/page-loaders.ts
@@ -90,3 +90,13 @@ export const loadChaptersIndexPage = async ({ workId }: { workId: string }) => {
90
).data
91
) as ChapterIndexPage;
92
};
93
+
94
+export interface SeriesPage extends CheerioAPI {
95
+ kind: "SeriesPage";
96
+}
97
+export const loadSeriesPage = async (seriesId: string) => {
98
+ return load(
99
+ (await axios.get<string>(`https://archiveofourown.org/series/${seriesId}`))
100
+ .data
101
+ ) as SeriesPage;
102
+};
0 commit comments