chamilo/chamilo-lms

View on GitHub
public/plugin/xapi/php-xapi/lrs-bundle/src/Resources/config/routing.xml

Summary

Maintainability
Test Coverage
<?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="xapi_lrs.statement.put" path="/statements" methods="PUT">
        <default key="_controller">xapi_lrs.controller.statement.put:putStatement</default>
        <default key="xapi_serializer">statement</default>
        <default key="xapi_lrs.route">
            <bool>true</bool>
        </default>
    </route>

    <route id="xapi_lrs.statement.post" path="/statements" methods="POST">
        <default key="_controller">xapi_lrs.controller.statement.post:postStatements</default>
        <default key="xapi_serializer">statement</default>
        <default key="xapi_lrs.route">
            <bool>true</bool>
        </default>
    </route>

    <route id="xapi_lrs.statement.get" path="/statements" methods="GET">
        <default key="_controller">xapi_lrs.controller.statement.get:getStatement</default>
        <default key="xapi_lrs.route">
            <bool>true</bool>
        </default>
    </route>
</routes>