Skip to content

Commit

Permalink
fix: update numbas api path
Browse files Browse the repository at this point in the history
  • Loading branch information
ublefo committed Apr 9, 2024
1 parent 68782ea commit 365a422
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/services/numbas.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class NumbasService {
* @returns An Observable with the Blob of the fetched resource
*/
fetchResource(unitId: number, taskDefId: number, resourcePath: string): Observable<any> {
const resourceUrl = `${API_URL}/units/${unitId}/task_definitions/${taskDefId}/numbas_data/${resourcePath}`;
const resourceUrl = `${API_URL}/numbas_api/${taskDefId}/numbas_data/${resourcePath}`;
const resourceMimeType = this.getMimeType(resourcePath);

return this.http.get(resourceUrl, { responseType: 'blob' }).pipe(
Expand Down

0 comments on commit 365a422

Please sign in to comment.