u
This commit is contained in:
@@ -12,5 +12,7 @@ export async function respondWithAuthenticatedUser(res, status, body) {
|
||||
...body,
|
||||
googleClientId: env.googleClientId,
|
||||
schemaVersion,
|
||||
vhost: env.vhost,
|
||||
vhostSettings: env.vhostSettings,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -36,6 +36,12 @@ export function register(app, basePath = '') {
|
||||
* schemaVersion:
|
||||
* type: integer
|
||||
* description: Current database schema version
|
||||
* vhost:
|
||||
* type: boolean
|
||||
* description: True when running in Docker (client may change feature set)
|
||||
* vhostSettings:
|
||||
* type: string
|
||||
* description: Pipelined settings string from VHOST_SETTINGS env
|
||||
* 401:
|
||||
* description: Unauthorized — still includes `googleClientId` and `schemaVersion` for the frontend
|
||||
* content:
|
||||
@@ -50,6 +56,12 @@ export function register(app, basePath = '') {
|
||||
* schemaVersion:
|
||||
* type: integer
|
||||
* description: Current database schema version
|
||||
* vhost:
|
||||
* type: boolean
|
||||
* description: True when running in Docker (client may change feature set)
|
||||
* vhostSettings:
|
||||
* type: string
|
||||
* description: Pipelined settings string from VHOST_SETTINGS env
|
||||
*/
|
||||
app.get(`${basePath}/auth/me`, async (req, res) => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user