You've already forked explain.depesz.com
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:
@@ -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' );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user