Skip to content

Commit 1f0cb8a

Browse files
committed
Aliasing action route.
1 parent 16d89c0 commit 1f0cb8a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

routes/api.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@
3434
Route::get('/{repository}/actions', '\\'.ListActionsController::class);
3535
Route::get('/{repository}/{repositoryId}/actions', '\\'.ListRepositoryActionsController::class);
3636
Route::post('/{repository}/action', '\\'.PerformActionController::class);
37+
Route::post('/{repository}/actions', '\\'.PerformActionController::class);// alias to the previous route
3738
Route::post('/{repository}/{repositoryId}/action', '\\'.PerformRepositoryActionController::class);
39+
Route::post('/{repository}/{repositoryId}/actions', '\\'.PerformRepositoryActionController::class); // alias to the previous route
3840

3941
// API CRUD
4042
Route::get('/{repository}', '\\'.RepositoryIndexController::class);

0 commit comments

Comments
 (0)