FleetCart/Modules/Translation/Routes/admin.php

16 lines
409 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?php
use Illuminate\Support\Facades\Route;
Route::get('translations', [
'uses' => 'TranslationController@index',
'as' => 'admin.translations.index',
'middleware' => 'can:admin.translations.index',
]);
Route::put('translations/{key}', [
'uses' => 'TranslationController@update',
'as' => 'admin.translations.update',
'middleware' => 'can:admin.translations.edit',
]);