fz_dispatch_post('/admin/users/:id/edit', 'User', 'update'); // Backend::Files fz_dispatch_get('/admin/files', 'Admin', 'files'); fz_dispatch_get('/admin/config', 'Admin', 'config'); fz_dispatch_get('/admin/invitations', 'Admin', 'invitations'); // Backend::CRON fz_dispatch_get('/admin/checkFiles', 'Admin', 'checkFiles'); // Authentication controller fz_dispatch_get('/login', 'Auth', 'loginForm'); fz_dispatch_post('/login', 'Auth', 'login'); fz_dispatch_get('/logout', 'Auth', 'logout'); // Filez-1.x url compatibility fz_dispatch_get('/download.php', 'File', 'downloadFzOne'); // User documentation fz_dispatch_get('/help', 'Help', 'index'); fz_dispatch_get('/help/:page', 'Help', 'showPage'); // Download controller fz_dispatch_get('/:file_hash', 'File', 'preview'); fz_dispatch_get('/:file_hash/view', 'File', 'view'); fz_dispatch_get('/:file_hash/download', 'File', 'download'); fz_dispatch_post('/:file_hash/download', 'File', 'download'); // with password // File controller fz_dispatch_get('/:file_hash/email', 'File', 'emailForm'); fz_dispatch_post('/:file_hash/email', 'File', 'email'); fz_dispatch_get('/:file_hash/delete', 'File', 'confirmDelete'); fz_dispatch_post('/:file_hash/delete', 'File', 'delete'); fz_dispatch_get('/:file_hash/extend', 'File', 'extend'); fz_dispatch_get('/:file_hash/invite', 'File', 'invite'); fz_dispatch_get('/:file_hash/:invitation_hash', 'File', 'invited'); run();
fz_dispatch_get('/admin/users/:id/delete', 'User', 'delete'); fz_dispatch_get('/admin/users/:id/edit', 'User', 'edit'); fz_dispatch_post('/admin/users/:id/edit', 'User', 'update'); // Backend::Files fz_dispatch_get('/admin/files', 'Admin', 'files'); fz_dispatch_get('/admin/config', 'Admin', 'config'); // Backend::CRON fz_dispatch_get('/admin/checkFiles', 'Admin', 'checkFiles'); // Authentication controller fz_dispatch_get('/login', 'Auth', 'loginForm'); fz_dispatch_post('/login', 'Auth', 'login'); fz_dispatch_get('/logout', 'Auth', 'logout'); // Filez-1.x url compatibility fz_dispatch_get('/download.php', 'File', 'downloadFzOne'); // User documentation fz_dispatch_get('/help', 'Help', 'index'); fz_dispatch_get('/help/:page', 'Help', 'showPage'); // Download controller fz_dispatch_get('/:file_hash', 'File', 'preview'); fz_dispatch_get('/:file_hash/view', 'File', 'view'); fz_dispatch_get('/:file_hash/download', 'File', 'download'); fz_dispatch_post('/:file_hash/download', 'File', 'download'); // with password // File controller fz_dispatch_get('/:file_hash/email', 'File', 'emailForm'); fz_dispatch_post('/:file_hash/email', 'File', 'email'); fz_dispatch_get('/:file_hash/share', 'File', 'share'); fz_dispatch_get('/:file_hash/delete', 'File', 'confirmDelete'); fz_dispatch_post('/:file_hash/delete', 'File', 'delete'); fz_dispatch_get('/:file_hash/extend', 'File', 'extend'); run();