|
2 | 2 |
|
3 | 3 | Route::group(['middleware' => ['web'], 'namespace' => '\BinshopsBlog\Controllers'], function () {
|
4 | 4 |
|
5 |
| - |
6 | 5 | /** The main public facing blog routes - show all posts, view a category, rss feed, view a single post, also the add comment route */
|
7 | 6 | Route::group(['prefix' => config('binshopsblog.blog_prefix', 'blog')], function () {
|
8 | 7 |
|
|
25 | 24 | 'BinshopsBlogReaderController@viewSinglePost')
|
26 | 25 | ->name('binshopsblog.single');
|
27 | 26 |
|
28 |
| - |
29 | 27 | // throttle to a max of 10 attempts in 3 minutes:
|
30 | 28 | Route::group(['middleware' => 'throttle:10,3'], function () {
|
31 | 29 |
|
32 | 30 | Route::post('save_comment/{blogPostSlug}',
|
33 | 31 | 'BinshopsBlogCommentWriterController@addNewComment')
|
34 | 32 | ->name('binshopsblog.comments.add_new_comment');
|
35 |
| - |
36 |
| - |
37 | 33 | });
|
38 |
| - |
39 | 34 | });
|
40 | 35 |
|
41 |
| - |
42 | 36 | /* Admin backend routes - CRUD for posts, categories, and approving/deleting submitted comments */
|
43 | 37 | Route::group(['prefix' => config('binshopsblog.admin_prefix', 'blog_admin')], function () {
|
44 | 38 |
|
|
78 | 72 |
|
79 | 73 | Route::get("/upload", "BinshopsBlogImageUploadController@create")->name("binshopsblog.admin.images.upload");
|
80 | 74 | Route::post("/upload", "BinshopsBlogImageUploadController@store")->name("binshopsblog.admin.images.store");
|
81 |
| - |
82 | 75 | });
|
83 | 76 |
|
84 |
| - |
85 | 77 | Route::delete('/delete_post/{blogPostId}',
|
86 | 78 | 'BinshopsBlogAdminController@destroy_post')
|
87 | 79 | ->name('binshopsblog.admin.destroy_post');
|
|
124 | 116 | Route::delete('/delete_category/{categoryId}',
|
125 | 117 | 'BinshopsBlogCategoryAdminController@destroy_category')
|
126 | 118 | ->name('binshopsblog.admin.categories.destroy_category');
|
127 |
| - |
128 | 119 | });
|
129 |
| - |
130 | 120 | });
|
131 | 121 | });
|
132 | 122 |
|
0 commit comments