ocarina2/bruno/Subsonic API/collection.bru

15 lines
303 B
Text
Raw Permalink Normal View History

2024-05-23 19:14:08 +02:00
auth {
mode: none
}
script:pre-request {
if(req.url.includes("?")){
req.setUrl(`${req.url}&u={{user}}&s={{salt}}&t={{hash}}&c=Ocarina&v={{version}}&f=json`)
}
else{
req.setUrl(`${req.url}?u={{user}}&s={{salt}}&t={{hash}}&c=Ocarina&v={{version}}&f=json`)
}
console.log(req.url)
}