Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
natesawant committed Nov 6, 2024
1 parent ecd2971 commit 57caa9b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions backend/src/routes/species.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,6 @@ import { getById, getByScientificName } from '../controllers/species/get';
* description: Unauthorized
* 404:
* description: species not found
* /species/aphia/{aphiaId}:
* get:
* summary: Get species by aphiaId
* description: Retrieve a species by its unique aphiaId.
* parameters:
* - in: path
* name: aphiaId
* required: true
* description: aphiaId of the species to retrieve
* schema:
* type: string
* responses:
* 200:
* description: Successfully retrieved species
* 401:
* description: Unauthorized
* 404:
* description: species not found
*/
export default (router: express.Router) => {
router.get('/species/id/:id', isAuthenticated, getById);
Expand Down
1 change: 0 additions & 1 deletion frontend/components/populated-info-popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const PopulatedInfoPopupButton = (props: { speciesId: string }) => {
// Can be changed to different url depending on how we want to fetch
const response = await fetch(`${API_BASE_URL}/species/scientific/${props.speciesId}`);
const value = await response.json();
console.log(value)
setContent(value as SpeciesContent);
};

Expand Down

0 comments on commit 57caa9b

Please sign in to comment.