<?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="atos.config" path="/admin/module/atos/configure" methods="post">
        <default key="_controller">Atos\Controller\ConfigureController::configure</default>
    </route>

    <route id="atos.download.log" path="/admin/module/atos/log">
        <default key="_controller">Atos\Controller\ConfigureController::downloadLog</default>
    </route>

    <route id="atos.logo" path="atos/logo/{image}">
        <default key="_controller">Atos\Controller\PaymentController::displayLogo</default>
    </route>

    <route id="atos.payment.confirmation" path="atos/callback" methods="post">
        <default key="_controller">Atos\Controller\PaymentController::processAtosRequest</default>
    </route>

    <route id="atos.payment.cancel" path="atos/cancel/{orderId}">
        <default key="_controller">Atos\Controller\PaymentController::processUserCancel</default>
        <requirement key="orderId">\d+</requirement>
    </route>
</routes>
