using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using RDocument;
using RDocument.Models;

namespace RDocument
{
    public static class WebApiConfig
    {
        public static void Register(HttpConfiguration config)
        {
            config.Routes.MapHttpRoute(
            name: "Api",
            routeTemplate: "OpenApi/{controller}/{key}",
            defaults: new { controller = "Api", key = RouteParameter.Optional });
        }
    }
}
