Skip to content

Commit

Permalink
fixed search fish routing
Browse files Browse the repository at this point in the history
  • Loading branch information
ZainabImadulla committed Nov 23, 2024
1 parent bbf81b8 commit 014b6f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/routes/species.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import express from 'express';
import { isAuthenticated } from '../middlewares/authMiddleware';
import { getById, getByScientificName } from '../controllers/species/get';
import { getById, getByScientificName, searchSpecies } from '../controllers/species/get';

/**
* @swagger
Expand Down Expand Up @@ -48,4 +48,6 @@ export default (router: express.Router) => {
isAuthenticated,
getByScientificName,
);
router.get('/species/search/:searchRequest', isAuthenticated, searchSpecies)
};

0 comments on commit 014b6f9

Please sign in to comment.