海南旅游SAAS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

48 lines
1.5 KiB

<?php
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| 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::middleware('auth:api')->get('/user', function (Request $request) {
return $request->user();
});
Route::namespace('App\Http\Controllers\Api')->group(function () {
# 首页
Route::post('index', 'IndexController@index');
/*# 轮播图
Route::prefix('slide')->group(function () {
Route::post('list', 'SlideController@index'); //轮播图
});
# 频道
Route::prefix('channel')->group(function () {
Route::post('list', 'ChannelController@index'); //频道列表
Route::post('my', 'ChannelController@my'); //我的频道列表
});
# 产品
Route::prefix('product')->group(function () {
Route::post('list', 'ProductController@index'); //产品列表
Route::post('hot', 'ProductController@hot'); //人气爆款
Route::post('guess', 'ProductController@guessLike'); //猜你喜欢
});
# 公告
Route::prefix('notice')->group(function () {
Route::post('list', 'NoticeController@index'); //公告列表
});*/
});