Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
upgrade taxes to laravel routers
- Loading branch information
1 parent
89200cf
commit fc9137c
Showing
5 changed files
with
44 additions
and
6 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
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 |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| <?php | ||
|
|
||
| use Illuminate\Support\Facades\Route; | ||
|
|
||
| \Route::name('api.') | ||
|
|
||
| ->prefix('api') | ||
| ->middleware(['api', 'admin', 'xss']) | ||
| ->namespace('\MicroweberPackages\Tax\Http\Controllers\Api') | ||
| ->group(function () { | ||
|
|
||
| Route::any('shop/save_tax_item', function () { | ||
| $data = request()->all(); | ||
| return mw()->tax_manager->save($data); | ||
| }); | ||
|
|
||
| Route::any('shop/delete_tax_item', function () { | ||
| $data = request()->all(); | ||
| return mw()->tax_manager->delete_by_id($data); | ||
| }); | ||
|
|
||
| }); |
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 |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| <?php |