This commit is contained in:
seb
2026-06-23 11:18:46 +02:00
parent 667f498573
commit 977ece3099
9 changed files with 131 additions and 78 deletions

View File

@@ -1,4 +1,4 @@
import { meJson } from './meJson.js';
import { meJson } from '../../auth/meJson.js';
/**
* Registers the current-user route (requires prior auth middleware populating `req.user`).

View File

@@ -1,5 +0,0 @@
import env from '../../../config/env.js';
export function meJson(res, status, body) {
return res.status(status).json({ ...body, googleClientId: env.googleClientId });
}