diff --git a/views/songs/Dil-Bechara.mp3 b/public/songs/Dil-Bechara.mp3 similarity index 100% rename from views/songs/Dil-Bechara.mp3 rename to public/songs/Dil-Bechara.mp3 diff --git a/routes/public.js b/routes/public.js index c1b3316..97aa2d4 100644 --- a/routes/public.js +++ b/routes/public.js @@ -168,10 +168,7 @@ router.get('/uploadTrack/:id',koaBody,async ctx=>{ console.log(ctx.hbs)} }) -router.get('/songs/:id',koaBody,async ctx=>{ - console.log("play") - await ctx.redirect('playlist',ctx.hbs) -}) + router.get('/playlist',koaBody,async ctx=>{ const upload= await new UploadTrack(dbName) try{ diff --git a/views/playlist.handlebars b/views/playlist.handlebars index be175c7..2862131 100644 --- a/views/playlist.handlebars +++ b/views/playlist.handlebars @@ -13,19 +13,16 @@
-
-
+ - Username is :{{username}} +

PlayList

- {{#if msg}} -

{{msg}}

- {{/if}} + Username is :{{username}}

- +
SingerName Track