Skip to content

Commit

Permalink
[Enhancement] Added doc for getDetails function
Browse files Browse the repository at this point in the history
  • Loading branch information
naseif committed Oct 18, 2021
1 parent 2788ea9 commit 611f3cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions modules/getMovieInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ module.exports.getMovieID = async (searchParam, year) => {
}
};

/**
* Gets Info about Movies based on an ID
* @param {String} id
* @returns Returns an Object containing all Info about the Movie
*/
module.exports.getDetails = async (id) => {
try {
const apiCall = await fetch(
Expand Down

0 comments on commit 611f3cc

Please sign in to comment.