diff options
| author | Fuwn <[email protected]> | 2022-03-24 02:58:05 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2022-03-24 02:58:05 -0700 |
| commit | 1834a78fe87713cd2ef62d3c7aa916668bdaad95 (patch) | |
| tree | d39073c0159fc679a26cfddc87e3052647502799 /src/datasources | |
| parent | Merge branch 'main' of https://github.com/senpy-club/graphql-api (diff) | |
| download | graphql-api-1834a78fe87713cd2ef62d3c7aa916668bdaad95.tar.xz graphql-api-1834a78fe87713cd2ef62d3c7aa916668bdaad95.zip | |
feat: support for anime boys
Diffstat (limited to 'src/datasources')
| -rw-r--r-- | src/datasources/senpy.js | 12 |
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"); } |