mirror of
https://github.com/janishutz/MusicPlayerV2.git
synced 2025-11-25 13:04:23 +00:00
lots of progress on apple music integration
This commit is contained in:
20
frontend/src/appleMusicRoutes.js
Normal file
20
frontend/src/appleMusicRoutes.js
Normal file
@@ -0,0 +1,20 @@
|
||||
/*
|
||||
* MusicPlayerV2 - appleMusicRoutes.js
|
||||
*
|
||||
* Created by Janis Hutz 11/14/2023, Licensed under the GPL V3 License
|
||||
* https://janishutz.com, development@janishutz.com
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
const path = require( 'path' );
|
||||
|
||||
module.exports = ( app ) => {
|
||||
app.get( '/apple-music', ( req, res ) => {
|
||||
res.sendFile( path.join( __dirname + '/client/appleMusic/index.html' ) );
|
||||
} );
|
||||
|
||||
app.get( '/apple-music/helpers/:file', ( req, res ) => {
|
||||
res.sendFile( path.join( __dirname + '/client/appleMusic/' + req.params.file ) );
|
||||
} );
|
||||
}
|
||||
Reference in New Issue
Block a user