api.php 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. use App\Services\Elasticsearch\ElasticsearchService;
  3. use Illuminate\Http\Request;
  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::middleware('auth:api')->get('/user', function (Request $request) {
  16. return $request->user();
  17. });
  18. Route::post('/printing-curr-price', [App\Http\Controllers\Api\BlankerController::class, 'currPrice']);
  19. Route::get('/projects', [App\Http\Controllers\Api\SodiumController::class, 'prjectIndex']);
  20. Route::post('/projects', [App\Http\Controllers\Api\SodiumController::class, 'prjectStore']);
  21. Route::put('/projects', [App\Http\Controllers\Api\SodiumController::class, 'prjectUpdate']);
  22. Route::get('/projects/{id}', [App\Http\Controllers\Api\SodiumController::class, 'prjectShow']);
  23. Route::delete('/projects', [App\Http\Controllers\Api\SodiumController::class, 'prjectDestroy']);
  24. Route::post('/after-base64', [App\Http\Controllers\Api\SodiumController::class, 'store']);
  25. Route::post('/send-images', [App\Http\Controllers\Api\SodiumController::class, 'imageTest']);
  26. Route::post('/text-send', [App\Http\Controllers\Api\SodiumController::class, 'textSend']);
  27. Route::post('/gate-token-get', [App\Http\Controllers\Api\GateTokenController::class, 'store']);
  28. Route::post('/api23-cronjobs', [App\Http\Controllers\Api\Api23GateTokenController::class, 'api23Cronjobs']);
  29. Route::post('/api23-js', [App\Http\Controllers\Api\Api23GateTokenController::class, 'api23Js']);
  30. Route::post('/api23-app', [App\Http\Controllers\Api\Api23GateTokenController::class, 'api23App']);
  31. Route::post('/item-url-scrap', [App\Http\Controllers\Api\Scrap\ItemUrlScrapController::class, 'store']);
  32. Route::post('/gate-token-get-test', [App\Http\Controllers\Api\GateTokenController::class, 'test']);
  33. Route::post('/call-api', [App\Http\Controllers\Api\ApiController::class, 'send']);
  34. Route::post('/send/text', [App\Http\Controllers\Api\TextSendController::class, 'store']);
  35. Route::post('/send-mail', [App\Http\Controllers\Api\MailSendController::class, 'store']);
  36. Route::post('/test-send-mail', [App\Http\Controllers\Api\MailSendController::class, 'testSend']);
  37. Route::post('/elasticsearch', function (ElasticsearchService $elService) {
  38. $response = $elService->getQueryAll(request('query'));
  39. return response()->json($response);
  40. });