<?php

namespace App;

use Nette;
use Nette\Application\Routers\RouteList;
use Nette\Application\Routers\Route;


class RouterFactory
{

	/**
	 * @return Nette\Application\IRouter
	 */
	public static function createRouter()
	{
		$router = new RouteList;
		//$router[] = new Route('<presenter>/<action>[/<id>]', 'Homepage:default');
                // Admin
                $router[] = new Route('admin/<presenter>/<action>/<id>', array(
                    'module' => 'Admin',
                    'presenter' => 'Admin',
                    'action' => 'default',
                    'id' => NULL,
                ));
                // Front
                $router[] = new Route('<presenter>/<action>/<id>', array(
                    'module' => 'Front',
                    'presenter' => 'Homepage',
                    'action' => 'default',
                    'id' => NULL,
                ));


		return $router;
	}

}
