fix activity pending route, hidden for now

This commit is contained in:
Sam 2016-01-12 15:48:44 +11:00
parent 6394521baa
commit 06b5798fb9
2 changed files with 2 additions and 1 deletions

View File

@ -63,6 +63,7 @@ export default function() {
this.route('replies');
this.route('likesGiven', {path: 'likes-given'});
this.route('bookmarks');
this.route('pending');
});
this.resource('userNotifications', {path: '/notifications'}, function(){

View File

@ -310,7 +310,7 @@ Discourse::Application.routes.draw do
get "users/:username/badges" => "users#show", constraints: {username: USERNAME_ROUTE_FORMAT}
get "users/:username/notifications" => "users#show", constraints: {username: USERNAME_ROUTE_FORMAT}
get "users/:username/notifications/:filter" => "users#show", constraints: {username: USERNAME_ROUTE_FORMAT}
get "users/:username/pending" => "users#show", constraints: {username: USERNAME_ROUTE_FORMAT}
get "users/:username/activity/pending" => "users#show", constraints: {username: USERNAME_ROUTE_FORMAT}
delete "users/:username" => "users#destroy", constraints: {username: USERNAME_ROUTE_FORMAT}
# The external_id constraint is to allow periods to be used in the value without becoming part of the format. ie: foo.bar.json
get "users/by-external/:external_id" => "users#show", constraints: {external_id: /[^\/]+/}