Browse Source

refactor: renamed export playlist route

Kristian Vos 3 years ago
parent
commit
823522e932
2 changed files with 4 additions and 5 deletions
  1. 1 1
      backend/logic/api.js
  2. 3 4
      frontend/src/components/modals/EditPlaylist/index.vue

+ 1 - 1
backend/logic/api.js

@@ -124,7 +124,7 @@ class _APIModule extends CoreClass {
 						});
 					});
 
-					response.app.get("/export/privatePlaylist/:playlistId", async (req, res) => {
+					response.app.get("/export/playlist/:playlistId", async (req, res) => {
 						const { playlistId } = req.params;
 
 						const userModel = await DBModule.runJob("GET_MODEL", { modelName: "user" });

+ 3 - 4
frontend/src/components/modals/EditPlaylist/index.vue

@@ -505,10 +505,9 @@ export default {
 			if (this.apiDomain === "")
 				this.apiDomain = await lofig.get("backend.apiDomain");
 
-			fetch(
-				`${this.apiDomain}/export/privatePlaylist/${this.playlist._id}`,
-				{ credentials: "include" }
-			)
+			fetch(`${this.apiDomain}/export/playlist/${this.playlist._id}`, {
+				credentials: "include"
+			})
 				.then(res => res.blob())
 				.then(blob => {
 					const url = window.URL.createObjectURL(blob);