-
Notifications
You must be signed in to change notification settings - Fork 0
/
routes.php
43 lines (33 loc) · 2.14 KB
/
routes.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
Route::prefix('admin')
->middleware(['web', 'auth', 'role:super-admin'])
->namespace('\Capmega\Blog\Controllers')
->group(function () {
Route::resource('blog', 'BlogController');
Route::resource('blog-post', 'BlogPostController');
Route::get('blog-post/create/{blog}', 'BlogPostController@create')->name('blog-post.create-blog');
Route::get('page/{page}', 'BlogPostController@page')->name('blog-post.page');
Route::put('page/{page}', 'BlogPostController@page')->name('blog-post.page');
Route::get('pages/{page}', 'BlogController@pages')->name('blog-post.pages');
Route::get('pages/blog/{blog}', 'BlogPostController@blogs')->name('blog-post.blogs');
Route::post('pages/{page}', 'BlogController@pages')->name('blog-post.pages');
Route::delete('page/{page}', 'BlogController@deletePages')->name('blog-post.pages.destroy');
Route::post('blog/addKey/{id}', 'BlogController@addKey')->name('blog.addkey');
Route::post('blog/removeKey/{id}', 'BlogController@removeKey')->name('blog.removekey');
Route::post('blog/addSize/{id}', 'BlogController@addSize')->name('blog.addsize');
Route::post('blog/removeSize/{id}', 'BlogController@removeSize')->name('blog.removesize');
Route::post('blog/addImage/{id}', 'BlogController@addImage')->name('blog.addimage');
Route::post('blog/removeImage/{id}', 'BlogController@removeImage')->name('blog.removeimage');
Route::post('blog-post/addImage/{id}', 'BlogPostController@saveImage')->name('blog-post.saveimage');
Route::post('blog-post/removeImage/{id}', 'BlogPostController@removeImage')->name('blog-post.removeimage');
Route::post('blog-post/images/save-sizes', 'BlogPostController@saveImageSizes')->name('blog-post.image.save-size');
Route::get('/search', 'BlogController@search')->name('search-post');
});
//
// Route::namespace('\App\Http\Controllers\Front')
// ->middleware(['menu'])
// ->group(function () {
// Route::get('/categories', 'BlogController@categories')->name('blog-categories');
// Route::get('/category/{seoname}', 'BlogController@category')->name('blog-category');
// Route::get('/post/{seoname}', 'BlogController@post')->name('post');
// });