<commit_before><?php

/**
 * Copyright 2015, <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * This file is part of the Illuminated package
 */

namespace Chromabits\Illuminated\Conference;

use Chromabits\Illuminated\Conference\Controllers\ConferenceController;
use Chromabits\Illuminated\Http\Factories\ResourceFactory;
use Chromabits\Illuminated\Http\Interfaces\RouteMapper;
use Illuminate\Routing\Router;

/**
 * Class ConferenceRouteDirectory.
 *
 * @author <NAME> <<EMAIL>>
 * @package Chromabits\Illuminated\Conference
 */
class ConferenceRouteDirectory implements RouteMapper
{
    /**
     * Map routes.
     *
     * @param Router $router
     */
    public function map(Router $router)
    {
        ResourceFactory::create(ConferenceController::class)
            ->get('/', 'anyIndex')
            ->get('/css/main.css', 'getCss')
            ->get('/{moduleName}', 'anyModule')
            ->get('/{moduleName}/{methodName}', 'anyMethod')
            ->inject($router);
    }
}
<commit_msg>Add POST handlers<commit_after><?php

/**
 * Copyright 2015, <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * This file is part of the Illuminated package
 */

namespace Chromabits\Illuminated\Conference;

use Chromabits\Illuminated\Conference\Controllers\ConferenceController;
use Chromabits\Illuminated\Http\Factories\ResourceFactory;
use Chromabits\Illuminated\Http\Interfaces\RouteMapper;
use Illuminate\Routing\Router;

/**
 * Class ConferenceRouteDirectory.
 *
 * @author <NAME> <<EMAIL>>
 * @package Chromabits\Illuminated\Conference
 */
class ConferenceRouteDirectory implements RouteMapper
{
    /**
     * Map routes.
     *
     * @param Router $router
     */
    public function map(Router $router)
    {
        ResourceFactory::create(ConferenceController::class)
            ->get('/', 'anyIndex')
            ->get('/css/main.css', 'getCss')
            ->get('/{moduleName}', 'anyModule')
            ->post('/{moduleName}', 'anyModule')
            ->get('/{moduleName}/{methodName}', 'anyMethod')
            ->post('/{moduleName}/{methodName}', 'anyMethod')
            ->inject($router);
    }
}

{'fraction_non_alphanumeric': 0.1361099184199227, 'fraction_numerical': 0.0034349506225848005, 'mean_word_length': 3.2830882352941178, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5629039', 'n_tokens_mistral': 679, 'n_tokens_neox': 676, 'n_words': 150}