<?php

use Illuminate\Support\Facades\Route;
use Illuminate\Support\Facades\File;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider and all of them will
| be assigned to the "web" middleware group. Make something great!
|
*/

// Route::get('/{any}', function () {
//     return File::get(public_path('index.html'));
// })->where('any', '.*');

Route::get('/', function () {
    return response()->json([
        'message' => 'Laravel API - OK',
        'version' => app()->version(),
        'status' => 'running'
    ]);
});