33 lines
1.3 KiB
PHP
33 lines
1.3 KiB
PHP
<?php
|
|
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Route;
|
|
use App\Http\Controllers\Api\{BannerController, AdminNoticeController, ArticleController, RegionController};
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
|
|
|
|
*/
|
|
|
|
Route::get('banner', [BannerController::class, 'index']);
|
|
|
|
Route::get('notice', [AdminNoticeController::class, 'index']);
|
|
Route::get('notice/{id}', [AdminNoticeController::class, 'show']);
|
|
|
|
Route::get('article/category', [ArticleController::class, 'category']);
|
|
Route::get('article/tree', [ArticleController::class, 'tree']);
|
|
Route::get('article', [ArticleController::class, 'index']);
|
|
Route::get('article/{id}', [ArticleController::class, 'show']);
|
|
|
|
Route::get('region/category', [RegionController::class, 'category']);
|
|
Route::get('region', [RegionController::class, 'index']);
|
|
Route::get('region/{id}', [RegionController::class, 'show']);
|
|
Route::get('region/{id}/plants', [RegionController::class, 'plants']);
|
|
Route::get('region/{id}/harvests', [RegionController::class, 'harvests']);
|