Payone, Shop, wizard
This commit is contained in:
parent
446bc4561b
commit
044a6bf253
28 changed files with 996 additions and 814 deletions
|
|
@ -13,6 +13,17 @@ use Illuminate\Http\Request;
|
|||
|
|
||||
*/
|
||||
|
||||
Route::middleware('auth:api')->get('/user', function (Request $request) {
|
||||
return $request->user();
|
||||
//Route::post('login', 'API\UserController@login');
|
||||
//Route::post('register', 'API\UserController@register');
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Route::get('/payment/status', 'Api\PayoneController@paymentStatus')->name('api.payment_status');
|
||||
Route::post('/payment/status', 'Api\PayoneController@paymentStatus')->name('api.payment_status');
|
||||
Route::group(['middleware' => 'auth:api'], function(){
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@ Route::get('/shop/product/image/{slug}', function($slug = null)
|
|||
})->name('shop_product_image');
|
||||
|
||||
|
||||
|
||||
//main site mivita
|
||||
Route::domain(config('app.pre_url_main').config('app.domain'))->group(function () {
|
||||
|
||||
|
|
@ -74,7 +75,7 @@ Route::domain(config('app.pre_url_main').config('app.domain'))->group(function (
|
|||
});
|
||||
|
||||
|
||||
/* ROUTING FOR CRM mein.mivita / CMS*/
|
||||
/* ROUTING FOR CRM my.mivita / CMS*/
|
||||
Route::domain(config('app.pre_url_crm').config('app.domain'))->group(function () {
|
||||
|
||||
Auth::routes();
|
||||
|
|
@ -246,9 +247,6 @@ Route::domain(config('app.pre_url_crm').config('app.domain'))->group(function ()
|
|||
|
||||
Route::domain(config('app.checkout_url').config('app.domain'))->group(function () {
|
||||
|
||||
Route::get('/payment/status', 'Web\CheckoutController@paymentStatus')->name('checkout.payment_status');
|
||||
Route::post('/payment/status', 'Web\CheckoutController@paymentStatus')->name('checkout.payment_status');
|
||||
|
||||
Route::group(['middleware' => ['checkout']], function() {
|
||||
|
||||
Route::get('/checkout/card/{identifier?}', 'Web\CheckoutController@checkout')->name('checkout.checkout_card');
|
||||
|
|
@ -281,80 +279,9 @@ Route::domain('{subdomain}.'.config('app.domain'))->group(function () {
|
|||
Route::get('/card/remove/{rowId}', 'Web\CardController@removeCard')->name('user.card_remove');
|
||||
Route::get('/card/delete', 'Web\CardController@deleteCard')->name('user.card_delete');
|
||||
Route::get('/back/to/shop/{reference?}', 'Web\CardController@backToShop')->name('user.back_to_shop');
|
||||
Route::get('/domain/check', 'Web\SiteController@domainCheck')->name('user.domain_check');
|
||||
Route::get('/{site}/{subsite?}/{product_slug?}', 'Web\SiteController@site')->name('user.site');
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
|
||||
//Route::get('/', 'HomeController@index')->name('/');
|
||||
|
||||
/*Route::post('/register/data', 'HomeController@register')->name('register_data');
|
||||
Route::post('/user/check/mail', 'HomeController@checkMail')->name('user_check_mail');
|
||||
|
||||
Route::get('/register/verify/{confirmationCode}', 'HomeController@verify')->name('register_verify');
|
||||
|
||||
Route::get('/status/register', 'HomeController@statusRegister')->name('status_register');
|
||||
Route::get('/status/verify', 'HomeController@statusVerify')->name('status_verify');
|
||||
Route::get('/status/error', 'HomeController@statusError')->name('status_error');
|
||||
|
||||
|
||||
Route::get('/user/update_email_confirm/{token}', 'UpdateEmailController@activateMail')->name('user_update_email_confirm');
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*Route::get('storage/{what}/{path}/{id}/{file_name}', function($what = null, $path = null, $id = null, $file_name = null)
|
||||
{
|
||||
$path = storage_path().'/app/'.$path.'/'.$id.'/images/'.$what.'/'.$file_name;
|
||||
if (file_exists($path)) {
|
||||
return Response::file($path);
|
||||
}
|
||||
});
|
||||
|
||||
Route::get('storage/{user_id}/{file_name}', function($user_id = null, $file_name = null)
|
||||
{
|
||||
$path = storage_path().'/'.'app'.'/user/' . $user_id . '/verification/' . $file_name;
|
||||
if (file_exists($path)) {
|
||||
return Response::file($path);
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
/*
|
||||
use App\Mail\MailResetPassword;
|
||||
|
||||
Route::get('/send_test_email', function(){
|
||||
|
||||
try {
|
||||
// Mail::to('kevin.adametz@me.com')->send(new MailResetPassword('asdasd', Auth::user()));
|
||||
|
||||
Mail::raw('Sending emails with Mailgun and Laravel is easy!', function($message) {
|
||||
$message->to('kevin.adametz@me.com', 'Kevin Adametz');
|
||||
$message->subject('testing Networktrips');
|
||||
});
|
||||
|
||||
|
||||
|
||||
} catch (\Exception $e) {
|
||||
dd($e->getMessage());
|
||||
}
|
||||
|
||||
$fail = Mail::failures();
|
||||
|
||||
if(!empty($fail)) throw new \Exception('Could not send message to '.$fail[0]);
|
||||
|
||||
});
|
||||
|
||||
*/
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue