Files
zh-chat-server/app/Api/Routes/dynamic.php
2022-11-01 11:07:41 +08:00

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');
});