|
24 | 24 |
|
25 | 25 | // throttle to a max of 10 attempts in 3 minutes:
|
26 | 26 | Route::group(['middleware' => 'throttle:10,3'], function () {
|
27 |
| - |
28 | 27 | Route::post('save_comment/{blogPostSlug}',
|
29 | 28 | 'BinshopsCommentWriterController@addNewComment')
|
30 | 29 | ->name('binshopsblog.comments.add_new_comment');
|
| 30 | + }); |
| 31 | + }); |
31 | 32 |
|
| 33 | + Route::group(['prefix' => config('binshopsblog.blog_prefix', 'blog')], function () { |
32 | 34 |
|
33 |
| - }); |
| 35 | + Route::get('/', 'BinshopsReaderController@index') |
| 36 | + ->name('binshopsblognolocale.index'); |
34 | 37 |
|
35 |
| - }); |
| 38 | + Route::get('/search', 'BinshopsReaderController@search') |
| 39 | + ->name('binshopsblognolocale.search'); |
36 | 40 |
|
| 41 | + Route::get('/category{subcategories}', 'BinshopsReaderController@view_category')->where('subcategories', '^[a-zA-Z0-9-_\/]+$')->name('binshopsblognolocale.view_category'); |
| 42 | + |
| 43 | + Route::get('/{blogPostSlug}', |
| 44 | + 'BinshopsReaderController@viewSinglePost') |
| 45 | + ->name('binshopsblognolocale.single'); |
| 46 | + |
| 47 | + // throttle to a max of 10 attempts in 3 minutes: |
| 48 | + Route::group(['middleware' => 'throttle:10,3'], function () { |
| 49 | + Route::post('save_comment/{blogPostSlug}', |
| 50 | + 'BinshopsCommentWriterController@addNewComment') |
| 51 | + ->name('binshopsblognolocale.comments.add_new_comment'); |
| 52 | + }); |
| 53 | + }); |
37 | 54 |
|
38 | 55 | /* Admin backend routes - CRUD for posts, categories, and approving/deleting submitted comments */
|
39 | 56 | Route::group(['prefix' => config('binshopsblog.admin_prefix', 'blog_admin')], function () {
|
|
0 commit comments