17 lines
646 B
PHP
17 lines
646 B
PHP
<?php
|
|
|
|
use Illuminate\Routing\Router;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
Route::group([
|
|
'prefix' => 'dynamics',
|
|
'middleware' => config('api.route.middleware_auth'),
|
|
], function (Router $router) {
|
|
$router->get('', 'DynamicController@index');
|
|
$router->get('', 'DynamicController@index');
|
|
$router->post('', 'DynamicController@store');
|
|
$router->delete('{dynamic}', 'DynamicController@destroy');
|
|
$router->post('{dynamic}/like', 'DynamicController@like');
|
|
$router->post('{dynamic}/comment', 'DynamicController@comment');
|
|
$router->delete('{dynamic}/comment/{comment}', 'DynamicController@commentDestroy');
|
|
}); |