forked from dbroqua/MusicTopus
Co-authored-by: dbroqua <contact@darkou.fr> Reviewed-on: https://git.darkou.fr/dbroqua/MusicTopus/pulls/57
This commit is contained in:
parent
d473899b20
commit
6320764743
3 changed files with 127 additions and 11 deletions
|
@ -9,7 +9,12 @@ const router = express.Router();
|
|||
|
||||
router.route("/").get(ensureLoggedIn("/connexion"), async (req, res, next) => {
|
||||
try {
|
||||
const data = await searchSong(req.query.q);
|
||||
const data = await searchSong(
|
||||
req.query.q,
|
||||
req.query.format || null,
|
||||
req.query.year || null,
|
||||
req.query.country || null
|
||||
);
|
||||
|
||||
sendResponse(req, res, data);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue