<commit_before>﻿namespace InspectR
{
    using System.Web.Mvc;
    using System.Web.Routing;

    using InspectR.Controllers.RequestLogger;

    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "create",
                url: "create",
                defaults: new { controller = "InspectR", action = "Create", isprivate = false }
                );

            //routes.MapRoute(
            //    name: "inspect",
            //    url: "inspect/{id}",
            //    defaults: new {controller = "InspectR", action = "Inspect"}
            //    );

            routes.MapRoute(
                name: "manage",
                url: "Manage/{action}/{id}",
                defaults: new { controller = "Manage", action = "Index", id = UrlParameter.Optional }
                );

            routes.Add(
                "log",
                new Route(
                    "{id}",
                    new RouteValueDictionary(
                        new
                            {
                                // Altough this action does not exists, need these default values for nice url's<commit_msg>allow slash in the log route, fixes #25<commit_after>﻿namespace InspectR
{
    using System.Web.Mvc;
    using System.Web.Routing;

    using InspectR.Controllers.RequestLogger;

    public class RouteConfig
    {
        public static void RegisterRoutes(RouteCollection routes)
        {
            routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

            routes.MapRoute(
                name: "create",
                url: "create",
                defaults: new { controller = "InspectR", action = "Create", isprivate = false }
                );

            //routes.MapRoute(
            //    name: "inspect",
            //    url: "inspect/{id}",
            //    defaults: new {controller = "InspectR", action = "Inspect"}
            //    );

            routes.MapRoute(
                name: "manage",
                url: "Manage/{action}/{id}",
                defaults: new { controller = "Manage", action = "Index", id = UrlParameter.Optional }
                );

            routes.MapRoute(
                name: "account",
                url: "Account/{action}/{id}",
                defaults: new { controller = "Account", action = "Login", id = UrlParameter.Optional }
                );

            routes.Add(
                "log",
                new Route(
                    "{id}/{*pathInfo}",
                    new RouteValueDictionary(
                        new
                            {
                                // Altough this action does not exists, need these default values for nice url's
{'fraction_non_alphanumeric': 0.11017247448081662, 'fraction_numerical': 0.0007039774727208729, 'mean_word_length': 1.2645418326693227, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3724674', 'n_tokens_mistral': 724, 'n_tokens_neox': 690, 'n_words': 169}