feat: Add role-based access control tests and update server
Some checks are pending
Docker Test / test (push) Waiting to run
Some checks are pending
Docker Test / test (push) Waiting to run
This commit is contained in:
parent
bfd432d094
commit
342342423c
2 changed files with 37 additions and 0 deletions
|
|
@ -17,6 +17,11 @@ app.use(express.json());
|
|||
|
||||
app.get('/health', (_req, res) => res.json({ status: 'ok' }));
|
||||
|
||||
// Test route for role middleware
|
||||
app.get('/test-role', (_req, res) => {
|
||||
res.status(200).json({ message: 'Test route for role middleware' });
|
||||
});
|
||||
|
||||
// Metrics endpoint
|
||||
app.get('/metrics', (_req, res) => {
|
||||
const uptime = process.uptime();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue