2015-07-12 21:01:42 +02:00
|
|
|
<?php
|
|
|
|
|
2021-01-17 14:21:57 +01:00
|
|
|
Route::get('/status', 'StatusController@show');
|
2018-03-31 13:41:40 +02:00
|
|
|
Route::get('/robots.txt', 'HomeController@getRobots');
|
2016-12-31 15:27:40 +01:00
|
|
|
|
2015-08-30 12:47:58 +02:00
|
|
|
// Authenticated routes...
|
2021-07-17 00:23:36 +02:00
|
|
|
Route::group(['middleware' => ['auth', 'mfa']], function () {
|
2015-08-05 21:59:39 +02:00
|
|
|
|
2019-05-04 16:48:15 +02:00
|
|
|
// Secure images routing
|
|
|
|
Route::get('/uploads/images/{path}', 'Images\ImageController@showImage')
|
2018-01-13 12:11:23 +01:00
|
|
|
->where('path', '.*$');
|
|
|
|
|
2019-10-05 13:55:01 +02:00
|
|
|
Route::get('/pages/recently-updated', 'PageController@showRecentlyUpdated');
|
2016-02-20 19:51:01 +01:00
|
|
|
|
2018-08-27 15:18:09 +02:00
|
|
|
// Shelves
|
|
|
|
Route::get('/create-shelf', 'BookshelfController@create');
|
2021-06-14 23:30:53 +02:00
|
|
|
Route::group(['prefix' => 'shelves'], function () {
|
2018-08-27 15:18:09 +02:00
|
|
|
Route::get('/', 'BookshelfController@index');
|
|
|
|
Route::post('/', 'BookshelfController@store');
|
2018-09-16 20:34:09 +02:00
|
|
|
Route::get('/{slug}/edit', 'BookshelfController@edit');
|
|
|
|
Route::get('/{slug}/delete', 'BookshelfController@showDelete');
|
|
|
|
Route::get('/{slug}', 'BookshelfController@show');
|
|
|
|
Route::put('/{slug}', 'BookshelfController@update');
|
|
|
|
Route::delete('/{slug}', 'BookshelfController@destroy');
|
2019-02-03 14:45:45 +01:00
|
|
|
Route::get('/{slug}/permissions', 'BookshelfController@showPermissions');
|
|
|
|
Route::put('/{slug}/permissions', 'BookshelfController@permissions');
|
2018-09-20 20:16:11 +02:00
|
|
|
Route::post('/{slug}/copy-permissions', 'BookshelfController@copyPermissions');
|
2019-04-15 21:43:25 +02:00
|
|
|
|
|
|
|
Route::get('/{shelfSlug}/create-book', 'BookController@create');
|
|
|
|
Route::post('/{shelfSlug}/create-book', 'BookController@store');
|
2018-08-27 15:18:09 +02:00
|
|
|
});
|
|
|
|
|
2018-03-25 12:34:42 +02:00
|
|
|
Route::get('/create-book', 'BookController@create');
|
2015-08-29 16:03:42 +02:00
|
|
|
Route::group(['prefix' => 'books'], function () {
|
2015-08-05 21:59:39 +02:00
|
|
|
|
2015-08-09 13:06:52 +02:00
|
|
|
// Books
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/', 'BookController@index');
|
|
|
|
Route::post('/', 'BookController@store');
|
|
|
|
Route::get('/{slug}/edit', 'BookController@edit');
|
|
|
|
Route::put('/{slug}', 'BookController@update');
|
|
|
|
Route::delete('/{id}', 'BookController@destroy');
|
2019-10-05 13:55:01 +02:00
|
|
|
Route::get('/{slug}/sort-item', 'BookSortController@showItem');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{slug}', 'BookController@show');
|
2019-01-31 21:37:12 +01:00
|
|
|
Route::get('/{bookSlug}/permissions', 'BookController@showPermissions');
|
|
|
|
Route::put('/{bookSlug}/permissions', 'BookController@permissions');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{slug}/delete', 'BookController@showDelete');
|
2019-10-05 13:55:01 +02:00
|
|
|
Route::get('/{bookSlug}/sort', 'BookSortController@show');
|
|
|
|
Route::put('/{bookSlug}/sort', 'BookSortController@update');
|
2019-09-15 23:33:27 +02:00
|
|
|
Route::get('/{bookSlug}/export/html', 'BookExportController@html');
|
|
|
|
Route::get('/{bookSlug}/export/pdf', 'BookExportController@pdf');
|
2020-05-13 06:12:26 +02:00
|
|
|
Route::get('/{bookSlug}/export/markdown', 'BookExportController@markdown');
|
2020-05-14 04:57:59 +02:00
|
|
|
Route::get('/{bookSlug}/export/zip', 'BookExportController@zip');
|
2019-09-15 23:33:27 +02:00
|
|
|
Route::get('/{bookSlug}/export/plaintext', 'BookExportController@plainText');
|
2015-09-06 15:35:53 +02:00
|
|
|
|
2015-08-09 13:06:52 +02:00
|
|
|
// Pages
|
2018-03-25 12:34:42 +02:00
|
|
|
Route::get('/{bookSlug}/create-page', 'PageController@create');
|
|
|
|
Route::post('/{bookSlug}/create-guest-page', 'PageController@createAsGuest');
|
2016-03-13 13:04:08 +01:00
|
|
|
Route::get('/{bookSlug}/draft/{pageId}', 'PageController@editDraft');
|
2016-05-13 22:20:21 +02:00
|
|
|
Route::post('/{bookSlug}/draft/{pageId}', 'PageController@store');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}', 'PageController@show');
|
2019-09-15 23:33:27 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/export/pdf', 'PageExportController@pdf');
|
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/export/html', 'PageExportController@html');
|
2020-05-13 06:12:26 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/export/markdown', 'PageExportController@markdown');
|
2019-09-15 23:33:27 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/export/plaintext', 'PageExportController@plainText');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/edit', 'PageController@edit');
|
2016-06-11 22:04:18 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/move', 'PageController@showMove');
|
2016-06-12 13:14:14 +02:00
|
|
|
Route::put('/{bookSlug}/page/{pageSlug}/move', 'PageController@move');
|
2018-04-14 19:00:16 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/copy', 'PageController@showCopy');
|
|
|
|
Route::post('/{bookSlug}/page/{pageSlug}/copy', 'PageController@copy');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/delete', 'PageController@showDelete');
|
2016-03-13 13:04:08 +01:00
|
|
|
Route::get('/{bookSlug}/draft/{pageId}/delete', 'PageController@showDeleteDraft');
|
2019-02-02 12:41:41 +01:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/permissions', 'PageController@showPermissions');
|
|
|
|
Route::put('/{bookSlug}/page/{pageSlug}/permissions', 'PageController@permissions');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::put('/{bookSlug}/page/{pageSlug}', 'PageController@update');
|
|
|
|
Route::delete('/{bookSlug}/page/{pageSlug}', 'PageController@destroy');
|
2016-03-13 13:04:08 +01:00
|
|
|
Route::delete('/{bookSlug}/draft/{pageId}', 'PageController@destroyDraft');
|
2015-08-30 12:47:58 +02:00
|
|
|
|
2016-01-20 23:13:13 +01:00
|
|
|
// Revisions
|
2019-10-05 13:55:01 +02:00
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/revisions', 'PageRevisionController@index');
|
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/revisions/{revId}', 'PageRevisionController@show');
|
|
|
|
Route::get('/{bookSlug}/page/{pageSlug}/revisions/{revId}/changes', 'PageRevisionController@changes');
|
|
|
|
Route::put('/{bookSlug}/page/{pageSlug}/revisions/{revId}/restore', 'PageRevisionController@restore');
|
|
|
|
Route::delete('/{bookSlug}/page/{pageSlug}/revisions/{revId}/delete', 'PageRevisionController@destroy');
|
2015-08-05 21:59:39 +02:00
|
|
|
|
2015-08-09 13:06:52 +02:00
|
|
|
// Chapters
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/create-page', 'PageController@create');
|
2018-03-25 12:34:42 +02:00
|
|
|
Route::post('/{bookSlug}/chapter/{chapterSlug}/create-guest-page', 'PageController@createAsGuest');
|
|
|
|
Route::get('/{bookSlug}/create-chapter', 'ChapterController@create');
|
|
|
|
Route::post('/{bookSlug}/create-chapter', 'ChapterController@store');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}', 'ChapterController@show');
|
|
|
|
Route::put('/{bookSlug}/chapter/{chapterSlug}', 'ChapterController@update');
|
2016-06-25 16:31:38 +02:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/move', 'ChapterController@showMove');
|
|
|
|
Route::put('/{bookSlug}/chapter/{chapterSlug}/move', 'ChapterController@move');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/edit', 'ChapterController@edit');
|
2019-02-02 12:41:41 +01:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/permissions', 'ChapterController@showPermissions');
|
2019-09-15 23:33:27 +02:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/export/pdf', 'ChapterExportController@pdf');
|
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/export/html', 'ChapterExportController@html');
|
2020-05-13 06:12:26 +02:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/export/markdown', 'ChapterExportController@markdown');
|
2019-09-15 23:33:27 +02:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/export/plaintext', 'ChapterExportController@plainText');
|
2019-02-02 12:41:41 +01:00
|
|
|
Route::put('/{bookSlug}/chapter/{chapterSlug}/permissions', 'ChapterController@permissions');
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/{bookSlug}/chapter/{chapterSlug}/delete', 'ChapterController@showDelete');
|
|
|
|
Route::delete('/{bookSlug}/chapter/{chapterSlug}', 'ChapterController@destroy');
|
|
|
|
});
|
|
|
|
|
2016-02-16 22:25:11 +01:00
|
|
|
// User Profile routes
|
2021-03-10 00:06:12 +01:00
|
|
|
Route::get('/user/{slug}', 'UserProfileController@show');
|
2015-08-08 21:05:30 +02:00
|
|
|
|
|
|
|
// Image routes
|
2020-07-25 01:20:58 +02:00
|
|
|
Route::get('/images/gallery', 'Images\GalleryImageController@list');
|
|
|
|
Route::post('/images/gallery', 'Images\GalleryImageController@create');
|
|
|
|
Route::get('/images/drawio', 'Images\DrawioImageController@list');
|
|
|
|
Route::get('/images/drawio/base64/{id}', 'Images\DrawioImageController@getAsBase64');
|
|
|
|
Route::post('/images/drawio', 'Images\DrawioImageController@create');
|
|
|
|
Route::get('/images/edit/{id}', 'Images\ImageController@edit');
|
|
|
|
Route::put('/images/{id}', 'Images\ImageController@update');
|
|
|
|
Route::delete('/images/{id}', 'Images\ImageController@destroy');
|
2015-07-12 21:01:42 +02:00
|
|
|
|
2016-11-12 15:12:26 +01:00
|
|
|
// Attachments routes
|
|
|
|
Route::get('/attachments/{id}', 'AttachmentController@get');
|
|
|
|
Route::post('/attachments/upload', 'AttachmentController@upload');
|
|
|
|
Route::post('/attachments/upload/{id}', 'AttachmentController@uploadUpdate');
|
|
|
|
Route::post('/attachments/link', 'AttachmentController@attachLink');
|
|
|
|
Route::put('/attachments/{id}', 'AttachmentController@update');
|
2020-07-04 17:53:02 +02:00
|
|
|
Route::get('/attachments/edit/{id}', 'AttachmentController@getUpdateForm');
|
2016-11-12 15:12:26 +01:00
|
|
|
Route::get('/attachments/get/page/{pageId}', 'AttachmentController@listForPage');
|
|
|
|
Route::put('/attachments/sort/page/{pageId}', 'AttachmentController@sortForPage');
|
|
|
|
Route::delete('/attachments/{id}', 'AttachmentController@delete');
|
2016-10-09 19:58:22 +02:00
|
|
|
|
2016-05-06 21:33:08 +02:00
|
|
|
// AJAX routes
|
2016-03-13 13:04:08 +01:00
|
|
|
Route::put('/ajax/page/{id}/save-draft', 'PageController@saveDraft');
|
2016-03-12 16:52:19 +01:00
|
|
|
Route::get('/ajax/page/{id}', 'PageController@getPageAjax');
|
2016-03-13 13:04:08 +01:00
|
|
|
Route::delete('/ajax/page/{id}', 'PageController@ajaxDestroy');
|
2016-03-09 23:32:07 +01:00
|
|
|
|
2016-05-13 22:20:21 +02:00
|
|
|
// Tag routes (AJAX)
|
2020-06-29 23:11:03 +02:00
|
|
|
Route::group(['prefix' => 'ajax/tags'], function () {
|
2016-05-15 21:12:53 +02:00
|
|
|
Route::get('/suggest/names', 'TagController@getNameSuggestions');
|
|
|
|
Route::get('/suggest/values', 'TagController@getValueSuggestions');
|
2016-05-06 21:33:08 +02:00
|
|
|
});
|
|
|
|
|
2016-06-12 13:14:14 +02:00
|
|
|
Route::get('/ajax/search/entities', 'SearchController@searchEntitiesAjax');
|
|
|
|
|
2017-01-13 17:15:48 +01:00
|
|
|
// Comments
|
2020-07-28 19:19:18 +02:00
|
|
|
Route::post('/comment/{pageId}', 'CommentController@savePageComment');
|
|
|
|
Route::put('/comment/{id}', 'CommentController@update');
|
|
|
|
Route::delete('/comment/{id}', 'CommentController@destroy');
|
2017-04-18 21:51:45 +02:00
|
|
|
|
2015-08-08 21:05:30 +02:00
|
|
|
// Links
|
2015-08-05 21:59:39 +02:00
|
|
|
Route::get('/link/{id}', 'PageController@redirectFromLink');
|
2015-08-08 21:05:30 +02:00
|
|
|
|
|
|
|
// Search
|
2017-04-09 21:59:57 +02:00
|
|
|
Route::get('/search', 'SearchController@search');
|
2015-09-01 16:35:11 +02:00
|
|
|
Route::get('/search/book/{bookId}', 'SearchController@searchBook');
|
2017-04-15 20:16:07 +02:00
|
|
|
Route::get('/search/chapter/{bookId}', 'SearchController@searchChapter');
|
2019-02-24 16:57:35 +01:00
|
|
|
Route::get('/search/entity/siblings', 'SearchController@searchSiblings');
|
2015-07-13 22:52:56 +02:00
|
|
|
|
2020-12-31 18:25:20 +01:00
|
|
|
// User Search
|
|
|
|
Route::get('/search/users/select', 'UserSearchController@forSelect');
|
|
|
|
|
2021-05-16 01:29:56 +02:00
|
|
|
// Template System
|
2019-08-11 21:04:43 +02:00
|
|
|
Route::get('/templates', 'PageTemplateController@list');
|
|
|
|
Route::get('/templates/{templateId}', 'PageTemplateController@get');
|
|
|
|
|
2021-05-16 01:29:56 +02:00
|
|
|
// Favourites
|
2021-05-23 14:34:08 +02:00
|
|
|
Route::get('/favourites', 'FavouriteController@index');
|
2021-05-16 01:29:56 +02:00
|
|
|
Route::post('/favourites/add', 'FavouriteController@add');
|
|
|
|
Route::post('/favourites/remove', 'FavouriteController@remove');
|
|
|
|
|
2015-08-16 21:11:21 +02:00
|
|
|
// Other Pages
|
|
|
|
Route::get('/', 'HomeController@index');
|
|
|
|
Route::get('/home', 'HomeController@index');
|
2017-12-08 12:52:43 +01:00
|
|
|
Route::get('/custom-head-content', 'HomeController@customHeadContent');
|
2015-07-13 22:52:56 +02:00
|
|
|
|
2015-08-30 16:31:16 +02:00
|
|
|
// Settings
|
2021-06-26 17:23:15 +02:00
|
|
|
Route::group(['prefix' => 'settings'], function () {
|
2017-02-25 13:41:32 +01:00
|
|
|
Route::get('/', 'SettingController@index')->name('settings');
|
2016-02-16 22:25:11 +01:00
|
|
|
Route::post('/', 'SettingController@update');
|
2016-02-27 00:44:02 +01:00
|
|
|
|
2018-05-27 20:40:07 +02:00
|
|
|
// Maintenance
|
2020-09-19 10:24:58 +02:00
|
|
|
Route::get('/maintenance', 'MaintenanceController@index');
|
|
|
|
Route::delete('/maintenance/cleanup-images', 'MaintenanceController@cleanupImages');
|
|
|
|
Route::post('/maintenance/send-test-email', 'MaintenanceController@sendTestEmail');
|
2018-05-27 20:40:07 +02:00
|
|
|
|
2020-10-03 19:44:12 +02:00
|
|
|
// Recycle Bin
|
|
|
|
Route::get('/recycle-bin', 'RecycleBinController@index');
|
|
|
|
Route::post('/recycle-bin/empty', 'RecycleBinController@empty');
|
2020-11-02 23:47:48 +01:00
|
|
|
Route::get('/recycle-bin/{id}/destroy', 'RecycleBinController@showDestroy');
|
|
|
|
Route::delete('/recycle-bin/{id}', 'RecycleBinController@destroy');
|
|
|
|
Route::get('/recycle-bin/{id}/restore', 'RecycleBinController@showRestore');
|
|
|
|
Route::post('/recycle-bin/{id}/restore', 'RecycleBinController@restore');
|
2020-10-03 19:44:12 +02:00
|
|
|
|
2020-09-19 13:06:45 +02:00
|
|
|
// Audit Log
|
|
|
|
Route::get('/audit', 'AuditLogController@index');
|
|
|
|
|
2016-02-16 22:25:11 +01:00
|
|
|
// Users
|
|
|
|
Route::get('/users', 'UserController@index');
|
|
|
|
Route::get('/users/create', 'UserController@create');
|
|
|
|
Route::get('/users/{id}/delete', 'UserController@delete');
|
2020-04-10 13:49:16 +02:00
|
|
|
Route::patch('/users/{id}/switch-books-view', 'UserController@switchBooksView');
|
|
|
|
Route::patch('/users/{id}/switch-shelves-view', 'UserController@switchShelvesView');
|
2018-08-27 15:18:09 +02:00
|
|
|
Route::patch('/users/{id}/switch-shelf-view', 'UserController@switchShelfView');
|
2019-02-03 14:45:45 +01:00
|
|
|
Route::patch('/users/{id}/change-sort/{type}', 'UserController@changeSort');
|
2019-04-14 14:01:51 +02:00
|
|
|
Route::patch('/users/{id}/update-expansion-preference/{key}', 'UserController@updateExpansionPreference');
|
2020-04-11 21:37:51 +02:00
|
|
|
Route::patch('/users/toggle-dark-mode', 'UserController@toggleDarkMode');
|
2016-02-16 22:25:11 +01:00
|
|
|
Route::post('/users/create', 'UserController@store');
|
|
|
|
Route::get('/users/{id}', 'UserController@edit');
|
|
|
|
Route::put('/users/{id}', 'UserController@update');
|
|
|
|
Route::delete('/users/{id}', 'UserController@destroy');
|
2016-02-27 00:44:02 +01:00
|
|
|
|
2019-12-29 14:02:26 +01:00
|
|
|
// User API Tokens
|
|
|
|
Route::get('/users/{userId}/create-api-token', 'UserApiTokenController@create');
|
2019-12-29 18:03:52 +01:00
|
|
|
Route::post('/users/{userId}/create-api-token', 'UserApiTokenController@store');
|
|
|
|
Route::get('/users/{userId}/api-tokens/{tokenId}', 'UserApiTokenController@edit');
|
|
|
|
Route::put('/users/{userId}/api-tokens/{tokenId}', 'UserApiTokenController@update');
|
|
|
|
Route::get('/users/{userId}/api-tokens/{tokenId}/delete', 'UserApiTokenController@delete');
|
|
|
|
Route::delete('/users/{userId}/api-tokens/{tokenId}', 'UserApiTokenController@destroy');
|
2019-12-29 14:02:26 +01:00
|
|
|
|
2016-02-27 00:44:02 +01:00
|
|
|
// Roles
|
2020-11-20 19:53:01 +01:00
|
|
|
Route::get('/roles', 'RoleController@list');
|
|
|
|
Route::get('/roles/new', 'RoleController@create');
|
|
|
|
Route::post('/roles/new', 'RoleController@store');
|
|
|
|
Route::get('/roles/delete/{id}', 'RoleController@showDelete');
|
|
|
|
Route::delete('/roles/delete/{id}', 'RoleController@delete');
|
|
|
|
Route::get('/roles/{id}', 'RoleController@edit');
|
|
|
|
Route::put('/roles/{id}', 'RoleController@update');
|
2016-02-16 22:25:11 +01:00
|
|
|
});
|
2021-06-28 23:02:45 +02:00
|
|
|
|
2021-07-17 00:23:36 +02:00
|
|
|
// MFA Routes
|
2021-06-28 23:02:45 +02:00
|
|
|
Route::get('/mfa/setup', 'Auth\MfaController@setup');
|
2021-07-02 21:53:33 +02:00
|
|
|
Route::get('/mfa/totp-generate', 'Auth\MfaTotpController@generate');
|
|
|
|
Route::post('/mfa/totp-confirm', 'Auth\MfaTotpController@confirm');
|
|
|
|
Route::get('/mfa/backup-codes-generate', 'Auth\MfaBackupCodesController@generate');
|
|
|
|
Route::post('/mfa/backup-codes-confirm', 'Auth\MfaBackupCodesController@confirm');
|
2021-07-14 22:27:21 +02:00
|
|
|
Route::delete('/mfa/remove/{method}', 'Auth\MfaController@remove');
|
2021-07-17 00:23:36 +02:00
|
|
|
Route::get('/mfa/verify', 'Auth\MfaController@verify');
|
2015-07-12 21:01:42 +02:00
|
|
|
});
|
2015-08-05 22:16:10 +02:00
|
|
|
|
2016-09-17 19:22:04 +02:00
|
|
|
// Social auth routes
|
2021-03-10 23:37:53 +01:00
|
|
|
Route::get('/login/service/{socialDriver}', 'Auth\SocialController@login');
|
|
|
|
Route::get('/login/service/{socialDriver}/callback', 'Auth\SocialController@callback');
|
2020-02-02 14:10:21 +01:00
|
|
|
Route::group(['middleware' => 'auth'], function () {
|
2021-06-14 23:37:58 +02:00
|
|
|
Route::post('/login/service/{socialDriver}/detach', 'Auth\SocialController@detach');
|
2020-02-02 14:10:21 +01:00
|
|
|
});
|
2021-03-10 23:37:53 +01:00
|
|
|
Route::get('/register/service/{socialDriver}', 'Auth\SocialController@register');
|
2015-09-04 21:40:36 +02:00
|
|
|
|
2015-08-23 16:46:02 +02:00
|
|
|
// Login/Logout routes
|
2016-09-17 19:22:04 +02:00
|
|
|
Route::get('/login', 'Auth\LoginController@getLogin');
|
|
|
|
Route::post('/login', 'Auth\LoginController@login');
|
|
|
|
Route::get('/logout', 'Auth\LoginController@logout');
|
|
|
|
Route::get('/register', 'Auth\RegisterController@getRegister');
|
2019-08-18 11:47:59 +02:00
|
|
|
Route::get('/register/confirm', 'Auth\ConfirmEmailController@show');
|
|
|
|
Route::get('/register/confirm/awaiting', 'Auth\ConfirmEmailController@showAwaiting');
|
|
|
|
Route::post('/register/confirm/resend', 'Auth\ConfirmEmailController@resend');
|
|
|
|
Route::get('/register/confirm/{token}', 'Auth\ConfirmEmailController@confirm');
|
2016-09-17 19:22:04 +02:00
|
|
|
Route::post('/register', 'Auth\RegisterController@postRegister');
|
2015-09-04 18:16:58 +02:00
|
|
|
|
2019-11-17 14:26:43 +01:00
|
|
|
// SAML routes
|
2020-02-02 11:59:03 +01:00
|
|
|
Route::post('/saml2/login', 'Auth\Saml2Controller@login');
|
2019-11-17 16:40:36 +01:00
|
|
|
Route::get('/saml2/logout', 'Auth\Saml2Controller@logout');
|
2019-11-17 14:26:43 +01:00
|
|
|
Route::get('/saml2/metadata', 'Auth\Saml2Controller@metadata');
|
|
|
|
Route::get('/saml2/sls', 'Auth\Saml2Controller@sls');
|
|
|
|
Route::post('/saml2/acs', 'Auth\Saml2Controller@acs');
|
|
|
|
|
2019-08-18 14:11:30 +02:00
|
|
|
// User invitation routes
|
|
|
|
Route::get('/register/invite/{token}', 'Auth\UserInviteController@showSetPassword');
|
|
|
|
Route::post('/register/invite/{token}', 'Auth\UserInviteController@setPassword');
|
|
|
|
|
2015-08-23 16:46:02 +02:00
|
|
|
// Password reset link request routes...
|
2016-09-17 19:22:04 +02:00
|
|
|
Route::get('/password/email', 'Auth\ForgotPasswordController@showLinkRequestForm');
|
|
|
|
Route::post('/password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail');
|
|
|
|
|
2015-08-23 16:46:02 +02:00
|
|
|
// Password reset routes...
|
2016-09-17 19:22:04 +02:00
|
|
|
Route::get('/password/reset/{token}', 'Auth\ResetPasswordController@showResetForm');
|
2018-05-19 18:01:33 +02:00
|
|
|
Route::post('/password/reset', 'Auth\ResetPasswordController@reset');
|
|
|
|
|
2021-06-26 17:23:15 +02:00
|
|
|
Route::fallback('HomeController@getNotFound')->name('fallback');
|