-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
eldertek
committed
Dec 26, 2024
1 parent
9f98d93
commit 8f80a04
Showing
10 changed files
with
583 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,26 @@ | ||
<?php | ||
return [ | ||
'routes' => [ | ||
// Page routes | ||
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], | ||
['name' => 'duplicate_api#list', 'url' => '/api/duplicates/{type}', 'verb' => 'GET', 'requirements' => ['page' => '\d+', 'limit' => '\d+']], | ||
['name' => 'duplicate_api#acknowledge', 'url' => '/api/duplicates/acknowledge/{hash}', 'verb' => 'POST'], | ||
['name' => 'duplicate_api#unacknowledge', 'url' => '/api/duplicates/unacknowledge/{hash}', 'verb' => 'POST'], | ||
|
||
// Duplicate routes | ||
['name' => 'duplicate_api#find', 'url' => '/api/duplicates/find', 'verb' => 'POST'], | ||
['name' => 'duplicate_api#clear', 'url' => '/api/duplicates/clear', 'verb' => 'POST'], | ||
['name' => 'duplicate_api#list', 'url' => '/api/duplicates/{type}', 'verb' => 'GET', 'requirements' => ['page' => '\d+', 'limit' => '\d+', 'onlyNonProtected' => 'true|false']], | ||
['name' => 'duplicate_api#acknowledge', 'url' => '/api/duplicates/acknowledge/{hash}', 'verb' => 'POST'], | ||
['name' => 'duplicate_api#unacknowledge', 'url' => '/api/duplicates/unacknowledge/{hash}', 'verb' => 'POST'], | ||
|
||
// Settings routes | ||
['name' => 'settings_api#list', 'url' => '/api/settings', 'verb' => 'GET'], | ||
['name' => 'settings_api#save', 'url' => '/api/settings/{key}/{value}', 'verb' => 'POST'], | ||
|
||
// Origin folder routes | ||
['name' => 'origin_folder_api#index', 'url' => '/api/origin-folders', 'verb' => 'GET'], | ||
['name' => 'origin_folder_api#create', 'url' => '/api/origin-folders', 'verb' => 'POST'], | ||
['name' => 'origin_folder_api#destroy', 'url' => '/api/origin-folders/{id}', 'verb' => 'DELETE'], | ||
|
||
// File routes | ||
['name' => 'file_api#delete', 'url' => '/api/files/delete', 'verb' => 'POST'], | ||
], | ||
]; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.