<?php

namespace Flyerimage\Core\Init;
use Flyerimage\Controller\HomeController;

/**
 * API Class
 */
class RestAPI
{

    /**
     * Initialize the class
     */
    public function __construct()
    {
        add_action('rest_api_init', [$this, 'register_api']);
    }

    /**
     * Register the all api
     * 
     * @return void
     */
    public function register_api()
    {
        (new HomeController())->regiester_routes();
    }
}
