mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-05 14:18:12 +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();
|
||||
|
||||
// Routes
|
||||
router.get('/', (req, res) => {
|
||||
router.get('/', (_req, res) => {
|
||||
res.json({ message: 'Welcome to the Express backend!' });
|
||||
});
|
||||
|
||||
// Example route
|
||||
router.get('/api/hello', (req, res) => {
|
||||
router.get('/api/hello', (_req, res) => {
|
||||
res.json({ message: 'Hello from the backend!' });
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user