api.php 996 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use App\Http\Controllers\Account\AccountController;
  3. use App\Http\Controllers\DeepSeek\DeepSeekController;
  4. use Illuminate\Support\Facades\Route;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | API Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here is where you can register API routes for your application. These
  11. | routes are loaded by the RouteServiceProvider within a group which
  12. | is assigned the "api" middleware group. Enjoy building your API!
  13. |
  14. */
  15. Route::group(['middleware' => ['bindToken', 'bindExportToken', 'checkLogin']], function () {
  16. Route::group(['prefix' => 'book'], function () {
  17. });
  18. });
  19. Route::group(['prefix' => 'deepseek'], function () {
  20. Route::post('chatWithReasoner', [DeepSeekController::class, 'chatWithReasoner']);
  21. });
  22. Route::get('login', [AccountController::class, 'login']); // 登录
  23. Route::get('logout', [AccountController::class, 'logout']); // 退出