Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. const supertest = require('supertest');
  2. const env = require('dotenv').config();
  3.  
  4. const api = supertest(process.env.OMDB_BASE_URL);
  5.  
  6. const getMovieList = (key, search) => api.get('')
  7. .set('Content-Type', 'application/json')
  8. .set('Accept', 'application/json')
  9. .query({apikey : key, s : search})
  10.  
  11. module.exports = {
  12. getMovieList,
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement