first commit

This commit is contained in:
Nathan FONTEYNE 2026-07-08 11:05:21 +02:00
commit 244cdbedd7
44 changed files with 3386 additions and 0 deletions

14
src/routes/users.js Normal file
View file

@ -0,0 +1,14 @@
const express = require('express');
const asyncHandler = require('../lib/asyncHandler');
const router = express.Router();
router.get(
'/me',
asyncHandler(async (req, res) => {
const { id, name, email, is_admin } = req.user;
res.json({ id, name, email, isAdmin: is_admin });
})
);
module.exports = router;