generated from liutk/owl-admin-base
48 lines
1.8 KiB
PHP
48 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Api;
|
|
|
|
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 and all of them will
|
|
| be assigned to the "api" middleware group. Make something great!
|
|
|
|
|
*/
|
|
|
|
Route::middleware('auth:sanctum')->get('/user', function (Request $request) {
|
|
return $request->user();
|
|
});
|
|
|
|
Route::middleware('api')->group(function () {
|
|
Route::post('captchas', [CaptchaController::class, 'store']);
|
|
Route::get('captchas/{captcha}', [CaptchaController::class, 'show']);
|
|
|
|
//广告
|
|
Route::get('/ads', [AdController::class, 'index']);
|
|
//业务范围
|
|
Route::get('/project_cates', [ProjectController::class, 'index']);
|
|
Route::get('/project_cates/{project_cate}', [ProjectController::class, 'show']);//服务详情
|
|
//业务子类详情
|
|
Route::get('/project_children/{child}', [ProjectChildrenController::class, 'show']);
|
|
//合作伙伴
|
|
Route::get('/friend_links', [FriendLinkController::class, 'index']);
|
|
//服务案例
|
|
Route::get('/case_study_tags', [CaseStudyController::class, 'tags']);
|
|
Route::get('/case_studies', [CaseStudyController::class, 'index']);
|
|
Route::get('/case_studies/{case_study}', [CaseStudyController::class, 'show']);
|
|
//企业资讯
|
|
Route::get('/news', [NewsController::class, 'index']);
|
|
Route::get('/news/{news}', [NewsController::class, 'show']);
|
|
//荣誉资质
|
|
Route::get('/honor_cates', [HonorController::class, 'cates']);
|
|
Route::get('/honors', [HonorController::class, 'index']);
|
|
//发展历程
|
|
Route::get('/timelines', [TimelineController::class, 'index']);
|
|
}); |