Skip to content

Commit

Permalink
modified routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bunny77K9 committed May 21, 2024
1 parent 899fe6f commit b169932
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions assets/js/models/answer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var app = app || {};

app.models.Answers = Backbone.Model.extend({
urlRoot: '/DevForum/index.php/api/Answer/',
urlRoot: '/index.php/api/Answer/',
defaults:{
answerid: null,
questionid: null,
Expand All @@ -14,10 +14,10 @@ app.models.Answers = Backbone.Model.extend({
viewstatus: null,
answereddate: null
},
url: '/DevForum/index.php/api/Answer/',
url: '/index.php/api/Answer/',
});

app.collections.AnswerCollection = Backbone.Collection.extend({
model: app.models.Answers,
url: '/DevForum/index.php/api/Answer/',
url: '/index.php/api/Answer/',
});
8 changes: 4 additions & 4 deletions assets/js/models/question.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var app = app || {};

app.models.Questions = Backbone.Model.extend({
urlRoot: '/DevForum/index.php/api/Question/',
urlRoot: '/index.php/api/Question/',
defaults: {
user_id: null,
title: null,
Expand All @@ -17,11 +17,11 @@ app.models.Questions = Backbone.Model.extend({
date:null,
answereddate:null,
},
url: '/DevForum/index.php/api/Question/',
urlAns: '/DevForum/index.php/api/Answer/',
url: '/index.php/api/Question/',
urlAns: '/index.php/api/Answer/',
});

app.collections.QuestionCollection = Backbone.Collection.extend({
model: app.models.Questions,
url: '/DevForum/index.php/api/Question/',
url: '/index.php/api/Question/',
});
6 changes: 3 additions & 3 deletions assets/js/models/user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var app = app || {};
app.models.User = Backbone.Model.extend({
urlRoot: '/DevForum/index.php/api/User/',
urlRoot: '/index.php/api/User/',
defaults: {
firstname: "",
lastname: "",
Expand All @@ -14,7 +14,7 @@ app.models.User = Backbone.Model.extend({
answercount: null,
questioncount: null,
},
url: '/DevForum/index.php/api/User/',
urlAskQuestion: '/DevForum/index.php/api/Question/'
url: '/index.php/api/User/',
urlAskQuestion: '/index.php/api/Question/'

});

0 comments on commit b169932

Please sign in to comment.