| 123456789101112131415161718192021222324252627 | <?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::any('/request/heartbeat', 'Api\DeviceController@heartbeat');Route::any('/request/addperson', 'Api\DeviceController@addperson');Route::get('/image/{filename}', function ($filename) {    $path = storage_path('app/public/' . $filename);    $path = $path.'.jpg';    if (!File::exists($path)) {        abort(404);    }    $file = File::get($path);    $type = File::mimeType($path);    return response($file, 200)->header('Content-Type', $type);});
 |