Secure send: hand somebody a password without leaving it in a chat window
This commit is contained in:
35
frontend/src/router/routes/securesend.js
Normal file
35
frontend/src/router/routes/securesend.js
Normal file
@@ -0,0 +1,35 @@
|
||||
/**
|
||||
* Securesend plugin routes.
|
||||
*
|
||||
* Auto-discovered by the router via import.meta.glob, so no registration
|
||||
* edit is needed. Every route carries meta.plugin 'securesend' so the ADR-009
|
||||
* guard redirects to the dashboard when the securesend backend plugin is
|
||||
* disabled. Form routes add requiresAuth so anonymous users cannot reach
|
||||
* create or edit.
|
||||
*/
|
||||
export default [
|
||||
{
|
||||
path: 'securesend',
|
||||
name: 'securesend',
|
||||
component: () => import('../../views/securesend/SecuresendList.vue'),
|
||||
meta: { plugin: 'securesend' }
|
||||
},
|
||||
{
|
||||
path: 'securesend/new',
|
||||
name: 'securesend-new',
|
||||
component: () => import('../../views/securesend/SecuresendForm.vue'),
|
||||
meta: { requiresAuth: true, plugin: 'securesend' }
|
||||
},
|
||||
{
|
||||
path: 'securesend/:id',
|
||||
name: 'securesend-detail',
|
||||
component: () => import('../../views/securesend/SecuresendDetail.vue'),
|
||||
meta: { plugin: 'securesend' }
|
||||
},
|
||||
{
|
||||
path: 'securesend/:id/edit',
|
||||
name: 'securesend-edit',
|
||||
component: () => import('../../views/securesend/SecuresendForm.vue'),
|
||||
meta: { requiresAuth: true, plugin: 'securesend' }
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user