aboutsummaryrefslogtreecommitdiff
path: root/src/datasources
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-20 02:36:04 -0700
committerFuwn <[email protected]>2022-03-20 02:36:04 -0700
commit0dd467aea1be19acf52477a66a26191dd075be57 (patch)
tree0a17afb5bd7585f5eba2a3cc42d3ba6140f46ecd /src/datasources
parentMerge branch 'main' of https://github.com/senpy-club/graphql-api (diff)
downloadgraphql-api-0dd467aea1be19acf52477a66a26191dd075be57.tar.xz
graphql-api-0dd467aea1be19acf52477a66a26191dd075be57.zip
feat: me route
Diffstat (limited to 'src/datasources')
-rw-r--r--src/datasources/senpy.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/datasources/senpy.js b/src/datasources/senpy.js
index 1d9ba2a..0c3b8b6 100644
--- a/src/datasources/senpy.js
+++ b/src/datasources/senpy.js
@@ -24,4 +24,8 @@ module.exports = class SenpyAPI extends RESTDataSource {
async getLanguage(language) {
return this.get(`language/${language}`);
}
+
+ async getMe() {
+ return this.get("me");
+ }
};