| 1234567891011121314151617181920212223242526 | <?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::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);});
 |