Skip to content
Snippets Groups Projects
Commit efe4e0a7 authored by Janis Daniel Dähne's avatar Janis Daniel Dähne
Browse files

- changed get all asset in exercise editor to take the exerciseId because we...

- changed get all asset in exercise editor to take the exerciseId because we want the files from all exercises (where the user has access to)
parent 088e31af
No related branches found
No related tags found
No related merge requests found
......@@ -93,7 +93,7 @@ export async function attachExitingFileToExerciseDescription(exerciseId: number,
export async function getPossibleExerciseDescriptionFiles(exerciseId: number): Promise<ReadonlyArray<FilePreviewFromBackend>> {
return genericLayer.get<ReadonlyArray<FilePreviewFromBackend>>(callingName,
`${controllerPrefixExerciseEditor}/upload/get/description/all/${exerciseId}`
`${controllerPrefixExerciseEditor}/upload/get/description/all`
)
}
......@@ -127,7 +127,7 @@ export async function uploadExerciseTestAssetFile(exerciseId: number, testId: nu
export async function getPossibleExerciseTestFiles(exerciseId: number): Promise<ReadonlyArray<FilePreviewFromBackend>> {
return genericLayer.get<ReadonlyArray<FilePreviewFromBackend>>(callingName,
`${controllerPrefixExerciseEditor}/upload/get/tests/all/${exerciseId}`
`${controllerPrefixExerciseEditor}/upload/get/tests/all`
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment