audition.php
1.74 KB
<?php
use App\Http\Container\AdminSection\Controllers\Audition\ActivityManagerController;
use App\Http\Container\ManageSection\Controllers\Audition\ActivityController;
use App\Http\Container\ManageSection\Controllers\Audition\ActivityWorkController;
use App\Http\Container\ManageSection\Controllers\Audition\ApplyController;
use App\Http\Container\ManageSection\Controllers\Audition\ProjectController;
Route::apiResource('applies', ApplyController::class)->except('show');
Route::apiResource('activities', ActivityController::class)->except('store');
Route::get('activities/{activity}/views', [ActivityController::class, 'viewUser']);
Route::get('activities/{activity}/likes', [ActivityController::class, 'likeUser']);
Route::get('activities/{activity}/managers', [ActivityController::class, 'manageUser']);
Route::put('activities/{activity}/change-status', [ActivityController::class, 'changeStatus'])->whereNumber('activity');
Route::apiResource('activity-works', ActivityWorkController::class)->only('index');
Route::put('activity-works/{work}/change-status', [ActivityWorkController::class, 'changeStatus'])->whereNumber('work');
Route::apiResource('projects', ProjectController::class);
Route::get('projects/{project}/managers', [ProjectController::class, 'manageUser']);
Route::get('projects/{project}/members', [ProjectController::class, 'memberUser']);
Route::get('projects/{project}/out-managers', [ProjectController::class, 'outManageUser']);
Route::post('projects/{project}/out-managers', [ProjectController::class, 'deleteOutManageUser']);
Route::get('projects/{project}/dynamics', [ProjectController::class, 'dynamic'])->whereNumber('project');
Route::apiResource('activity-managers', ActivityManagerController::class)->only(['update', 'store', 'destroy']);