mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-05 06:08:13 +02:00
added underscore to unused vars to remove lsp warning
This commit is contained in:
@ -2,12 +2,12 @@ import { Router } from 'express';
|
|||||||
const router = Router();
|
const router = Router();
|
||||||
|
|
||||||
// Routes
|
// Routes
|
||||||
router.get('/', (req, res) => {
|
router.get('/', (_req, res) => {
|
||||||
res.json({ message: 'Welcome to the Express backend!' });
|
res.json({ message: 'Welcome to the Express backend!' });
|
||||||
});
|
});
|
||||||
|
|
||||||
// Example route
|
// Example route
|
||||||
router.get('/api/hello', (req, res) => {
|
router.get('/api/hello', (_req, res) => {
|
||||||
res.json({ message: 'Hello from the backend!' });
|
res.json({ message: 'Hello from the backend!' });
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user