Skip to content

Commit

Permalink
Move baseURL to a constant
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcanna committed Mar 2, 2024
1 parent 205a7c3 commit ff085cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion raiapi.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
*/
/* eslint-env node */
const ua = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.94 Safari/537.36';
const baseURL = 'https://www.raiplay.it';
const axios = require('axios').create({
baseURL: 'https://www.raiplay.it',
baseURL,
headers: {
'User-Agent': ua,
},
Expand Down

0 comments on commit ff085cd

Please sign in to comment.