feat: add note module and route fixes
This commit is contained in:
@@ -6,6 +6,10 @@ use app\api\controller\v1\Auth;
|
||||
use app\api\controller\v1\Platform;
|
||||
use app\api\controller\v1\PublishPlan;
|
||||
use app\api\controller\v1\VideoWork;
|
||||
use app\note\controller\v1\Ai as NoteAi;
|
||||
use app\note\controller\v1\Auth as NoteAuth;
|
||||
use app\note\controller\v1\Meta as NoteMeta;
|
||||
use app\note\controller\v1\Note as NoteItem;
|
||||
|
||||
/**
|
||||
* 全局路由入口。
|
||||
@@ -45,3 +49,24 @@ Route::group('api/v1/publish-plan', function () {
|
||||
Route::group('api/v1/video-work', function () {
|
||||
Route::get('list', [VideoWork::class, 'index']);
|
||||
})->middleware(\app\api\middleware\Auth::class);
|
||||
|
||||
// note v1 笔记小程序模块接口规划(公开)
|
||||
Route::group('note/v1', function () {
|
||||
Route::get('meta/interfaces', [NoteMeta::class, 'interfaces']);
|
||||
Route::post('auth/wechat-login', [NoteAuth::class, 'wechatLogin']);
|
||||
});
|
||||
|
||||
// note v1 笔记小程序模块接口(需登录)
|
||||
Route::group('note/v1', function () {
|
||||
Route::get('auth/me', [NoteAuth::class, 'me']);
|
||||
|
||||
Route::post('item/create', [NoteItem::class, 'create']);
|
||||
Route::get('item/list', [NoteItem::class, 'index']);
|
||||
Route::get('item/:id', [NoteItem::class, 'read']);
|
||||
Route::post('item/update/:id', [NoteItem::class, 'update']);
|
||||
Route::post('item/delete/:id', [NoteItem::class, 'delete']);
|
||||
Route::post('item/transcript/:id', [NoteItem::class, 'transcript']);
|
||||
|
||||
Route::post('ai/summary/:id', [NoteAi::class, 'summary']);
|
||||
Route::get('ai/summary/:id', [NoteAi::class, 'readSummary']);
|
||||
})->middleware(\app\api\middleware\Auth::class);
|
||||
|
||||
Reference in New Issue
Block a user