17 lines
701 B
PHP
17 lines
701 B
PHP
<?php
|
||||
|
|
|
|||
|
|
use App\Http\Controllers\EarnDeviceController;
|
|||
|
|
use App\Http\Controllers\EarnTaskResultController;
|
|||
|
|
use App\Http\Middleware\AuthenticateEarnApiToken;
|
|||
|
|
use Illuminate\Support\Facades\Route;
|
|||
|
|
|
|||
|
|
Route::post('/earn/device/bind', [EarnDeviceController::class, 'bind'])
|
|||
|
|
->middleware(AuthenticateEarnApiToken::class.':tasks:read,bind')
|
|||
|
|
->name('earn.device.bind');
|
|||
|
|
|
|||
|
|
// Doğrulanmış Earn istemcisinden görev sonuçlarını kabul eder.
|
|||
|
|
// Yazar: Gökhan Engin - İletişim : https://bit.ly/YazılımUzmanı
|
|||
|
|
Route::post('/earn/tasks/results', [EarnTaskResultController::class, 'store'])
|
|||
|
|
->middleware(AuthenticateEarnApiToken::class.':tasks:read,results')
|
|||
|
|
->name('earn.tasks.results.store');
|