aboutsummaryrefslogtreecommitdiff
path: root/src/api/routes/user/userGET.js
diff options
context:
space:
mode:
authorZephyrrus <[email protected]>2020-07-02 23:40:35 +0300
committerZephyrrus <[email protected]>2020-07-02 23:40:35 +0300
commitdd46f79550d8e7a2f7a0364cc0fb8e7a38ed4aba (patch)
treefef980a4c300c03349a017210f9411409fda422f /src/api/routes/user/userGET.js
parentfeat: experimental video preview generator in webm form (diff)
downloadhost.fuwn.me-dd46f79550d8e7a2f7a0364cc0fb8e7a38ed4aba.tar.xz
host.fuwn.me-dd46f79550d8e7a2f7a0364cc0fb8e7a38ed4aba.zip
feat: return APIKey when fetching user
Diffstat (limited to 'src/api/routes/user/userGET.js')
-rw-r--r--src/api/routes/user/userGET.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/api/routes/user/userGET.js b/src/api/routes/user/userGET.js
index fe46fd4..7929aac 100644
--- a/src/api/routes/user/userGET.js
+++ b/src/api/routes/user/userGET.js
@@ -11,7 +11,8 @@ class usersGET extends Route {
user: {
id: user.id,
username: user.username,
- isAdmin: user.isAdmin
+ isAdmin: user.isAdmin,
+ apiKey: user.apiKey
}
});
}