mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Simplify url
This commit is contained in:
parent
578495bab6
commit
fda77179a3
|
@ -423,7 +423,7 @@
|
||||||
<script>
|
<script>
|
||||||
$('#saved_report_select')
|
$('#saved_report_select')
|
||||||
.on('select2:select', function (event) {
|
.on('select2:select', function (event) {
|
||||||
window.location.href = '/reports/saved-templates/' + event.params.data.id;
|
window.location.href = '/reports/templates/' + event.params.data.id;
|
||||||
})
|
})
|
||||||
.on('select2:clearing', function (event) {
|
.on('select2:clearing', function (event) {
|
||||||
window.location.href = '{{ route('reports/custom') }}';
|
window.location.href = '{{ route('reports/custom') }}';
|
||||||
|
|
|
@ -357,11 +357,12 @@ Route::group(['middleware' => ['auth']], function () {
|
||||||
)->name('reports/export/accessories');
|
)->name('reports/export/accessories');
|
||||||
Route::get('reports/custom', [ReportsController::class, 'getCustomReport'])->name('reports/custom');
|
Route::get('reports/custom', [ReportsController::class, 'getCustomReport'])->name('reports/custom');
|
||||||
Route::post('reports/custom', [ReportsController::class, 'postCustom']);
|
Route::post('reports/custom', [ReportsController::class, 'postCustom']);
|
||||||
Route::post('reports/saved-templates', [ReportTemplatesController::class, 'store'])->name('report-templates.store');
|
|
||||||
Route::get('reports/saved-templates/{reportId}', [ReportTemplatesController::class, 'show'])->name('report-templates.show');
|
Route::post('reports/templates', [ReportTemplatesController::class, 'store'])->name('report-templates.store');
|
||||||
Route::get('reports/saved-templates/{reportId}/edit', [ReportTemplatesController::class, 'edit'])->name('report-templates.edit');
|
Route::get('reports/templates/{reportId}', [ReportTemplatesController::class, 'show'])->name('report-templates.show');
|
||||||
Route::post('reports/saved-templates/{reportId}', [ReportTemplatesController::class, 'update'])->name('report-templates.update');
|
Route::get('reports/templates/{reportId}/edit', [ReportTemplatesController::class, 'edit'])->name('report-templates.edit');
|
||||||
Route::delete('reports/saved-templates/{reportId}', [ReportTemplatesController::class, 'destroy'])->name('report-templates.destroy');
|
Route::post('reports/templates/{reportId}', [ReportTemplatesController::class, 'update'])->name('report-templates.update');
|
||||||
|
Route::delete('reports/templates/{reportId}', [ReportTemplatesController::class, 'destroy'])->name('report-templates.destroy');
|
||||||
|
|
||||||
Route::get(
|
Route::get(
|
||||||
'reports/activity',
|
'reports/activity',
|
||||||
|
|
Loading…
Reference in a new issue