35 lines
1.3 KiB
PHP
35 lines
1.3 KiB
PHP
<?php
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| is assigned the "api" middleware group. Enjoy building your API!
|
|
|
|
|
*/
|
|
|
|
Route::middleware('auth:api')->get('/user', function (Request $request) {
|
|
return $request->user();
|
|
});
|
|
|
|
Route::group(['middleware' => ['cors']], function () {
|
|
// new user, without authorization.
|
|
Route::post('/v1/register', 'ApiV1Controller@register');
|
|
Route::post('/v1/authorized', 'ApiV1Controller@authorized');
|
|
Route::post('/v1/staking', 'ApiV1Controller@staking');
|
|
Route::post('/v1/withdraw', 'ApiV1Controller@withdraw');
|
|
|
|
Route::get('/v1/page_mining', 'ApiV1Controller@page_mining');
|
|
Route::get('/v1/page_account', 'ApiV1Controller@page_account');
|
|
Route::get('/v1/page_team', 'ApiV1Controller@page_team');
|
|
|
|
Route::get('/v1/withdrawal_history', 'ApiV1Controller@withdrawal_history');
|
|
Route::get('/v1/daily_revenue_history', 'ApiV1Controller@daily_revenue_history');
|
|
Route::get('/v1/reward_history', 'ApiV1Controller@reward_history');
|
|
});
|