api.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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('GetAllCharacters', 'CharController@GetAllCharacters');
  24. Route::get('GetUserCharacters/{username}', 'CharController@GetUserCharacters');
  25. Route::post('SendItemToCharacter', 'CharController@SendItemToCharacter');
  26. Route::group(['prefix'=>'funcs_adm'], function(){
  27. Route::get('UpdateCharItemAccount/{CharID?}', 'ADMIN\AdminController@UpdateCharItemAccount');
  28. Route::get('CheckCharItemAccount/{CharID?}/{StrRecordKind?}', 'ADMIN\AdminController@CheckCharItemAccount');
  29. Route::post('SendItemForAccount', 'ADMIN\AdminController@SendItemForAccount');
  30. Route::get('GetAccountsSpecialChar', 'ADMIN\AdminController@GetAccountsSpecialChar');
  31. Route::get('GetPCID', 'ADMIN\AdminController@GetPCID');
  32. });
  33. });
  34. Route::group(['prefix'=>'nexon'], function(){
  35. Route::get('loginCheck/loginCheck', 'Auth\AuthController@LoginAccountCheck');
  36. Route::post('inquiryBalance/json', 'Cash\CashShopController@inquiryBalance');
  37. Route::post('nexonCash/charge/json', 'Cash\CashShopController@nexonCash');
  38. Route::post('purchaseItem/json', 'Cash\CashShopController@purchaseItem');
  39. });