audition.php
2.89 KB
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
<?php
use App\Http\Container\AdminSection\Controllers\Audition\ActivityController;
use App\Http\Container\AdminSection\Controllers\Audition\ActivityManagerController;
use App\Http\Container\AdminSection\Controllers\Audition\ActivityReListRecordController;
use App\Http\Container\AdminSection\Controllers\Audition\ActivityWorkController;
use App\Http\Container\AdminSection\Controllers\Audition\ApplyController;
use App\Http\Container\AdminSection\Controllers\Audition\ProjectController;
use App\Http\Container\AdminSection\Controllers\Audition\ProjectManagerController;
Route::apiResource('applies', ApplyController::class)->except('show');
Route::put('applies/{apply}/audit', [ApplyController::class, 'audit'])->whereNumber('apply');
Route::get('applies/{apply}/records', [ApplyController::class, 'record'])->whereNumber('apply');
Route::apiResource('activities', ActivityController::class);
Route::get('activities/{activity}/views', [ActivityController::class, 'viewUser'])->whereNumber('activity');
Route::get('activities/{activity}/likes', [ActivityController::class, 'likeUser'])->whereNumber('activity');
Route::get('activities/{activity}/submits', [ActivityController::class, 'submitUser'])->whereNumber('activity');
Route::get('activities/{activity}/matches', [ActivityController::class, 'matchUser'])->whereNumber('activity');
Route::get('activities/{activity}/managers', [ActivityController::class, 'manageUser'])->whereNumber('activity');
Route::post('activities/{activity}/notify', [ActivityController::class, 'sendNotify'])->whereNumber('activity');
Route::put('activities/{activity}/change-status', [ActivityController::class, 'changeStatus'])->whereNumber('activity');
Route::put('activities/{activity}/change-user-share', [ActivityController::class, 'changeUserShare'])->whereNumber('activity');
Route::apiResource('activity-managers', ActivityManagerController::class)->except(['show', 'index']);
Route::apiResource('activity-works', ActivityWorkController::class)->only('index');
Route::put('activity-works/{work}/change-status', [ActivityWorkController::class, 'changeStatus'])->whereNumber('work');
Route::get('activity-relist-records', [ActivityReListRecordController::class, 'index']);
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::put('projects/{project}/change-status', [ProjectController::class, 'changeStatus'])->whereNumber('project');
Route::get('projects/{project}/dynamics', [ProjectController::class, 'dynamic'])->whereNumber('project');
Route::apiResource('project-managers', ProjectManagerController::class)->except(['show', 'index']);