adding base of JSON API for others to consume

This commit is contained in:
2026-01-09 17:41:52 -07:00
parent 3bf399eb97
commit 40a7c041d1
3 changed files with 141 additions and 0 deletions

6
routes/api.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
use App\Http\Controllers\Api\WeatherController;
use Illuminate\Support\Facades\Route;
Route::get('/{period?}', [WeatherController::class, 'index'])->name('api.weather');