<?php

namespace EasyRestaurantManager\Http\Router;

use EasyRestaurantManager\Http\Controllers\CategoryController;
use EasyRestaurantManager\Http\Controllers\ColorController;
use EasyRestaurantManager\Http\Controllers\CouponController;
use EasyRestaurantManager\Http\Controllers\MenuController;
use EasyRestaurantManager\Http\Controllers\ReservationController;
use EasyRestaurantManager\Http\Controllers\SettingController;
use EasyRestaurantManager\Http\Controllers\TableController;
use EasyRestaurantManager\Http\Controllers\TestController;

use WP_REST_Request;
use WPTravelEngine\Modules\CouponCode;

class Route {
    public static function register() {
        // API_Router::get('/test', [TestController::class, 'test_endpoint']);
        // API_Router::post('/order', [TestController::class, 'create_order']);

        API_Router::post('/postCategory', [CategoryController::class, 'storeCategory']);
        API_Router::get('/getCategory', [CategoryController::class, 'getCategory']);
        API_Router::post('/deleteCategory', [CategoryController::class, 'deleteCategory']);

        API_Router::post('/postMenu', [MenuController::class, 'storeMenu']);
        API_Router::get('/getMenu', [MenuController::class, 'getMenu']);
        API_Router::get('/get_menus_with_category', [MenuController::class, 'getMenusWithCategory']);
        API_Router::post('/deleteMenu', [MenuController::class, 'deleteMenu']);
        
        API_Router::get('/getCoupon', [CouponController::class, 'getCoupon']);
        API_Router::post('/postCoupon', [CouponController::class, 'postCoupon']);
        API_Router::post('/deleteCoupon', [CouponController::class, 'deleteCoupon']);

        API_Router::get('/getTable', [TableController::class, 'getTable']);
        API_Router::post('/postTable', [TableController::class, 'postTable']);
        API_Router::post('/deleteTable', [TableController::class, 'deleteTable']);

        API_Router::get('/general-settings', [SettingController::class, 'getSetting']);
        API_Router::get('/reservation-settings', [SettingController::class, 'getSetting']);
        API_Router::get('/email-settings', [SettingController::class, 'getSetting']);
        API_Router::post('/postSetting', [SettingController::class, 'postSetting']);
        API_Router::post('/confirmation-settings', [SettingController::class, 'postConfirmationSettings']);
       // API_Router::post('/reservation-settings', [SettingController::class, 'postSetting']);
       // API_Router::post('/email-settings', [SettingController::class, 'postSetting']);
        
        API_Router::post('/postReservation', [ReservationController::class,  'postReservation']);
        API_Router::get('/getReservation', [ReservationController::class,  'getReservation']);
        API_Router::get('/getAvailableTables', [ReservationController::class,  'getAvailableTables']);
        API_Router::post('/updateReservationStatus',[ReservationController::class,  'updateReservationStatus']);
        API_Router::post('/deleteReservation', [ReservationController::class, 'deleteReservation']);
        API_Router::get('/load_more_menu_items', [MenuController::class, 'loadMoreMenuItems']);
    } 

    
}
