Show route

This commit is contained in:
Rimian Perkins 2019-09-11 17:38:55 +10:00
parent ac267fabaf
commit a5dbe4f9bd
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,6 @@
export default function () {
this.route('patrons');
this.route('patrons', function() {
this.route("show", { path: ":pid" });
});
}

View File

@ -2,4 +2,5 @@
Discourse::Application.routes.append do
get '/patrons' => 'patrons#index'
get '/patrons/:pid' => 'patrons#index'
end