[Bps-public-commit] App-Changeloggr branch, master, updated. d069ba0b1e7aeea39ba3d9b784313d89e743c699
sartak at bestpractical.com
sartak at bestpractical.com
Wed Apr 1 13:28:23 EDT 2009
The branch, master has been updated
via d069ba0b1e7aeea39ba3d9b784313d89e743c699 (commit)
from 6fb8c3733e003b2e53d0ac329a4e58254010dd15 (commit)
Summary of changes:
lib/App/Changeloggr/Dispatcher.pm | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit d069ba0b1e7aeea39ba3d9b784313d89e743c699
Author: Shawn M Moore <sartak at gmail.com>
Date: Wed Apr 1 13:28:02 2009 -0400
Change the URL of admin page from /changelog/admin/TOKEN to
/changelog/TOKEN/admin
diff --git a/lib/App/Changeloggr/Dispatcher.pm b/lib/App/Changeloggr/Dispatcher.pm
index 5de4c7e..babdfa9 100644
--- a/lib/App/Changeloggr/Dispatcher.pm
+++ b/lib/App/Changeloggr/Dispatcher.pm
@@ -10,7 +10,8 @@ before '*' => run {
on '/created-changelog' => run {
my $id = Jifty->web->response->result('create-changelog')->content('id');
- redirect '/changelog/admin/' . Changelog($id)->as_superuser->admin_token;
+ my $admin_token = Changelog($id)->as_superuser->admin_token;
+ redirect "/changelog/$admin_token/admin";
};
on '/changelog/*' => run {
@@ -23,7 +24,7 @@ on '/changelog/*/Changes' => run {
show '/changelog/download';
};
-on '/changelog/admin/*' => run {
+on '/changelog/*/admin' => run {
my $uuid = $1;
set id => Changelog(admin_token => $uuid)->id;
show '/changelog/admin';
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list