aboutsummaryrefslogtreecommitdiff
path: root/src/datasources
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-24 02:58:05 -0700
committerFuwn <[email protected]>2022-03-24 02:58:05 -0700
commit1834a78fe87713cd2ef62d3c7aa916668bdaad95 (patch)
treed39073c0159fc679a26cfddc87e3052647502799 /src/datasources
parentMerge branch 'main' of https://github.com/senpy-club/graphql-api (diff)
downloadgraphql-api-1834a78fe87713cd2ef62d3c7aa916668bdaad95.tar.xz
graphql-api-1834a78fe87713cd2ef62d3c7aa916668bdaad95.zip
feat: support for anime boys
Diffstat (limited to 'src/datasources')
-rw-r--r--src/datasources/senpy.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/datasources/senpy.js b/src/datasources/senpy.js
index 0c3b8b6..869ec97 100644
--- a/src/datasources/senpy.js
+++ b/src/datasources/senpy.js
@@ -17,14 +17,26 @@ module.exports = class SenpyAPI extends RESTDataSource {
return this.get("random");
}
+ async getBoysRandom() {
+ return this.get("boys/random");
+ }
+
async getLanguages() {
return this.get("languages");
}
+ async getBoysLanguages() {
+ return this.get("boys/languages");
+ }
+
async getLanguage(language) {
return this.get(`language/${language}`);
}
+ async getBoysLanguage(language) {
+ return this.get(`boys/language/${language}`);
+ }
+
async getMe() {
return this.get("me");
}