api.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. Header('Access-Control-Allow-Origin: *');
  3. Header('Access-Control-Allow-Methods: GET,POST,PUT,DELETE,OPTIONS');
  4. Header('Access-Control-Allow-Headers: Content-Type, Accept, Authorization');
  5. Header("HTTP/1.1 200 OK");
  6. Header("content-type:text/xml");
  7. use Illuminate\Http\Request;
  8. use Illuminate\Support\Facades\Route;
  9. /*
  10. |--------------------------------------------------------------------------
  11. | API Routes
  12. |--------------------------------------------------------------------------
  13. |
  14. | Here is where you can register API routes for your application. These
  15. | routes are loaded by the RouteServiceProvider within a group which
  16. | is assigned the "api" middleware group. Enjoy building your API!
  17. |
  18. */
  19. Route::group(['prefix'=>'api'], function(){
  20. Route::post('LoginAction', 'Auth\AuthController@LoginAccountActionPost');
  21. Route::post('ActionBanAccountUseHack', 'Auth\AntiHackController@ActionBanAccountUseHack');
  22. Route::post('RegisterAction', 'Auth\AuthController@RegisterAccountActionPost');
  23. Route::get('GetUserCharacters/{username}', 'CharController@GetUserCharacters');
  24. Route::post('SendItemToCharacter', 'CharController@SendItemToCharacter');
  25. Route::group(['prefix'=>'funcs_adm'], function(){
  26. Route::get('UpdateCharItemAccount/{CharID?}', 'ADMIN\AdminController@UpdateCharItemAccount');
  27. Route::get('CheckCharItemAccount/{CharID?}/{StrRecordKind?}', 'ADMIN\AdminController@CheckCharItemAccount');
  28. Route::post('SendItemForAccount', 'ADMIN\AdminController@SendItemForAccount');
  29. Route::get('GetAccountsSpecialChar', 'ADMIN\AdminController@GetAccountsSpecialChar');
  30. Route::get('GetPCID', 'ADMIN\AdminController@GetPCID');
  31. });
  32. });
  33. Route::group(['prefix'=>'nexon'], function(){
  34. Route::get('loginCheck/loginCheck', 'Auth\AuthController@LoginAccountCheck');
  35. Route::post('inquiryBalance/json', 'Cash\CashShopController@inquiryBalance');
  36. Route::post('nexonCash/charge/json', 'Cash\CashShopController@nexonCash');
  37. Route::post('purchaseItem/json', 'Cash\CashShopController@purchaseItem');
  38. });