1
0
mirror of https://gitlab.com/depesz/explain.depesz.com.git synced 2025-12-01 23:13:35 +02:00

Make it possible to delete plans

Each plan will have now delete_key (random, 50 character string), which
can be used with url like http://.../d/plan-id/delete-key
to delete it.

The delete key is shown once just after plan creation
This commit is contained in:
Hubert depesz Lubaczewski
2013-03-30 20:18:27 +01:00
parent adf37dfd65
commit 6a31c2e4a1
7 changed files with 131 additions and 44 deletions

View File

@@ -32,6 +32,9 @@ sub startup {
# route: 'show'
$routes->route( '/s/:id' )->to( 'controller#show', id => '' )->name( 'show' );
# route: 'delete'
$routes->route( '/d/:id/:key' )->to( 'controller#delete', id => '', key => '' )->name( 'delete' );
# route: 'history'
$routes->route( '/history/:date' )->to( 'controller#history', date => '' )->name( 'history' );