<?xml version="1.0" encoding="UTF-8" ?>

<routes xmlns="http://symfony.com/schema/routing"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://symfony.com/schema/routing http://symfony.com/schema/routing/routing-1.0.xsd">

    <route id="rewrite.url.config.get.rules" path="/admin/module/RewriteUrl/get-rules">
        <default key="_controller">RewriteUrl\Controller\Admin\ModuleConfigController::getDatatableRules</default>
    </route>
    <route id="rewrite.url.config.set-rewriting_enable" path="/admin/module/RewriteUrl/config/setRewritingEnable">
        <default key="_controller">RewriteUrl\Controller\Admin\ModuleConfigController::setRewritingEnableAction</default>
    </route>
    <route id="rewrite.url.rule.add" path="/admin/module/RewriteUrl/rule/add">
        <default key="_controller">RewriteUrl\Controller\Admin\ModuleConfigController::addRuleAction</default>
    </route>
    <route id="rewrite.url.rule.update" path="/admin/module/RewriteUrl/rule/update">
        <default key="_controller">RewriteUrl\Controller\Admin\ModuleConfigController::updateRuleAction</default>
    </route>
    <route id="rewrite.url.rule.remove" path="/admin/module/RewriteUrl/rule/remove">
        <default key="_controller">RewriteUrl\Controller\Admin\ModuleConfigController::removeRuleAction</default>
    </route>
    <route id="rewrite.url.rule.move-position" path="/admin/module/RewriteUrl/rule/movePosition">
        <default key="_controller">RewriteUrl\Controller\Admin\ModuleConfigController::moveRulePositionAction</default>
    </route>

    <route id="rewrite.url.delete" path="/admin/module/rewriteurl/delete">
        <default key="_controller">RewriteUrl\Controller\Admin\RewriteUrlAdminController::deleteAction</default>
    </route>
    <route id="rewrite.url.search" path="/admin/module/rewriteurl/search">
        <default key="_controller">RewriteUrl\Controller\Admin\RewriteUrlAdminController::searchAction</default>
    </route>
    <route id="rewrite.url.exist" path="/admin/module/rewriteurl/exist">
        <default key="_controller">RewriteUrl\Controller\Admin\RewriteUrlAdminController::existAction</default>
    </route>
    <route id="rewrite.url.add" path="/admin/module/rewriteurl/add">
        <default key="_controller">RewriteUrl\Controller\Admin\RewriteUrlAdminController::addAction</default>
    </route>
    <route id="rewrite.url.setdefault" path="/admin/module/rewriteurl/setdefault">
        <default key="_controller">RewriteUrl\Controller\Admin\RewriteUrlAdminController::setDefaultAction</default>
    </route>
    <route id="rewrite.url.reassign" path="/admin/module/rewriteurl/reassign">
        <default key="_controller">RewriteUrl\Controller\Admin\RewriteUrlAdminController::reassignAction</default>
    </route>
    <route id="rewrite.url.change-redirect-type" path="/admin/module/rewriteurl/change-redirect-type" methods="POST">
        <default key="_controller">RewriteUrl\Controller\Admin\RewriteUrlAdminController::changeRedirectTypeAction</default>
    </route>
    <route id="rewrite.url.list-notrewritenurls" path="/admin/list-notrewritenurls">
        <default key="_controller">RewriteUrl\Controller\Admin\NotRewritenUrlsAdminController::defaultAction</default>
    </route>

</routes>
