Fix user.code.problem routes to use . instead of _

This commit is contained in:
Nick Winter 2015-11-14 16:32:21 -08:00
parent 401d383ff4
commit b31e5fc93a
2 changed files with 2 additions and 1 deletions
app/views/editor/campaign
server/commons

View file

@ -403,7 +403,7 @@ module.exports = class CampaignLevelView extends CocoView
@analytics.commonProblems.data = data
doneCallback()
request = @supermodel.addRequestResource 'common_problems', {
url: '/db/user_code_problem/-/common_problems'
url: '/db/user.code.problem/-/common_problems'
data: {startDay: startDay, endDay: endDay, slug: @levelSlug}
method: 'POST'
success: success

View file

@ -45,6 +45,7 @@ module.exports.handlerUrlOverrides =
'mail_sent': 'mail.sent'
'user_polls_record': 'user.polls.record'
'trial_request': 'trial.request'
'user_code_problem': 'user.code.problem'
module.exports.routes =
[