Ejemplo n.º 1
0
        public static void Register(HttpConfiguration config)
        {
            // Web API routes
            //config.MapHttpAttributeRoutes();

            CustomerController.ConfigureRoutes(config);
            VendorController.ConfigureRoutes(config);
            FilesController.ConfigureRoutes(config);
            AdminController.ConfigureRoutes(config);

            config.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional }
                );
        }