Closed ishan710 closed 1 year ago
this seems to be working great (i'll close the other PR now since this one is replacing it).
if u can't get the StandardJS addon for VSCode working u should still be able to run the linter in the terminal by running standard
which will check all ur files, or standard backend/REST-API.js
to just check that file
This PR implements the get_poem rest api and adds a testing functionality working with sample data till the time the database team can work on their part.
One big change in this PR is that I don't need
searchPoemByAuthor
searchPoemByLoc
, andsearchPoemByRoute
function from the database team anymore. I only need anall_poems
function that returns all the poems. And on on that I apply a filter for givenauthor
,location
,route
.Note: For some reason, my linter is not working correctly and I can not see any code formatting errors. I can try to fix this in class.