import { Request, Response } from 'express';
import { Controller, GET, Page, BaseController } from '@BridgemanAccessible/ba-web-framework';

/**
 * The HomeController class is responsible for handling the home page of the site.
 */
@Controller()
export class HomeController extends BaseController {
    /**
     * Route for rendering the site's home page.
     * 
     * @param req The request object.
     * @param res The response object.
     */
    @Page('Home', 'index.ejs')
    @GET('/')
    private home(req: Request, res: Response) {
        return {
            business: {
                location: 'Winnipeg, Canada'
            }
        };
    }

    //@Page('New Design', 'new-design-3.ejs', [], ['new-design-3'])
    //@GET('/new-design')
    //private newPage(req: Request, res: Response) {}
}