PHP Classes

File: routes/api.php

Recommend this page to a friend!
  Classes of Nyi Nyi Lwin   Laravel Nova Log Viewer   routes/api.php   Download  
File: routes/api.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel Nova Log Viewer
Display information about logs in Laravel Nova
Author: By
Last change:
Date: 5 years ago
Size: 909 bytes
 

Contents

Class file image Download
<?php

use Illuminate\Http\Request;
use
Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Tool API Routes
|--------------------------------------------------------------------------
|
| Here is where you may register API routes for your tool. These routes
| are loaded by the ServiceProvider of your tool. They are protected
| by your tool's "Authorize" middleware by default. Now, go build!
|
*/

Route::group(['namespace' => 'PhpJunior\NovaLogViewer\Http\Controllers'], function () {
   
Route::get('get_chart_data','NovaLogViewerController@getChartData');
   
Route::get('get_list_logs','NovaLogViewerController@getListLogs');
   
Route::get('download/{date}','NovaLogViewerController@download');
   
Route::get('get/{date}/{level}','NovaLogViewerController@showByLevel');

   
Route::delete('delete','NovaLogViewerController@delete');
});