<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\FrontendSupportController;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    // return view('welcome');
    return view('app');
})->middleware(['auth.shopify'])->name('home');

Route::get('/image-importer', function () {
    return view('image-importer');
})->middleware(['auth.shopify'])->name('image-importer');

Route::get('/content-tools', function () {
    return view('content-tools');
})->middleware(['auth.shopify'])->name('content-tools');


Route::post('/back-in-stock-subscribe', [FrontendSupportController::class, 'backInStockSubscribe']);

// Old route for event registration
Route::post('/event-registration', [FrontendSupportController::class, 'eventRegistration']);
