35 lines
918 B
PHP
35 lines
918 B
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
Route::get('/network', function () {
|
|
return view('network');
|
|
});
|
|
|
|
Route::get('/temp', function () {
|
|
return view('temp');
|
|
});
|
|
|
|
Route::any('/log',"Logging@log");
|
|
Route::any('/push',"Push@data");
|
|
|
|
Route::get('search/autocomplete', 'Search@autocomplete');
|
|
|
|
Route::post('network/search', 'Network@search');
|
|
Route::post('temp/search', 'Temperature@search');
|
|
Route::get('csv','Network@csv')->name('csv');
|
|
Route::get('csvtemp','Temperature@csv')->name('csvtemp');
|