save
This commit is contained in:
parent
9b15ac9fd3
commit
27df1a73b5
28 changed files with 1695 additions and 247 deletions
|
@ -21,19 +21,31 @@ Dotenv\Dotenv::createImmutable(__DIR__ . '/../')->load();
|
|||
// Start the session
|
||||
app::init_db();
|
||||
use app\models\addresses;
|
||||
use app\models\cart_items;
|
||||
use app\models\carts;
|
||||
use app\models\magic_links;
|
||||
use app\models\order_items;
|
||||
use app\models\orders;
|
||||
use app\models\products;
|
||||
use app\models\quote_items;
|
||||
use app\models\quotes;
|
||||
use app\models\subscriptions;
|
||||
use app\models\transactions;
|
||||
use app\models\user_addresses;
|
||||
use app\models\users;
|
||||
|
||||
if (!app::$db->query("SELECT name FROM sqlite_master WHERE type='table' AND name='users'")->fetch()) {
|
||||
addresses::init();
|
||||
cart_items::init();
|
||||
carts::init();
|
||||
magic_links::init();
|
||||
order_items::init();
|
||||
orders::init();
|
||||
products::init();
|
||||
quote_items::init();
|
||||
quotes::init();
|
||||
subscriptions::init();
|
||||
transactions::init();
|
||||
user_addresses::init();
|
||||
users::init();
|
||||
}
|
||||
|
@ -140,6 +152,7 @@ $controller = match ($route) {
|
|||
'/account' => account::index($defaults),
|
||||
'/account/profile' => account::profile(),
|
||||
'/account/login' => account::login($defaults),
|
||||
'/account/email' => account::email(),
|
||||
'/account/logout' => account::logout(),
|
||||
'/magic-link' => magic_link::index(),
|
||||
'/account/returns' => account::returns($defaults),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue