Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix!: fix course detail page url bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Faraz Maqsood committed Sep 25, 2023
1 parent f0e196f commit 4a6a4a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ecommerce/static/js/models/course_model.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ define([

return Backbone.RelationalModel.extend({
urlRoot: '/api/v2/courses/',
url: function() {
return Backbone.Model.prototype.url.call(this) + '/';
},

defaults: {
id: null,
Expand Down

0 comments on commit 4a6a4a4

Please sign in to comment.