public static void Register(HttpConfiguration config) { SuperscribeConfig.Register(config); var engine = RouteEngineFactory.Create(); config.DependencyResolver = new SuperscribeDependencyAdapter(config.DependencyResolver, engine); engine.Route("Any" / Any.Controller / Any.Action / (Int)"siteId"); var forms = engine.Route(r => r / "api" / (Long)"parentId" / "Forms".Controller()); var blog = engine.Route(r => r / "sites" / (Int)"siteId" / "blog"); var portfolio = engine.Route(r => r / "sites" / (Int)"siteId" / "portfolio"); var blogposts = engine.Route(blog / "posts".Controller("blogposts")); engine.Route(forms / "VisibleFor" / (String)"appDataId", To.Action("VisibleFor")); engine.Route(forms / (Long)"id", To.Action("GetById")); engine.Route(blog / "tags".Controller("blogtags")); engine.Route(blogposts / (Int)"postId" / "media".Controller("blogpostmedia") / (Int)"id"); engine.Route(blogposts / "archives".Controller("blogpostarchives") / (Int)"year" / (Int)"month"); engine.Route(portfolio / "projects".Controller("portfolioprojects") / (Int)"projectId" / "media".Controller("portfolioprojectmedia") / (Int)"id"); engine.Route(portfolio / "tags".Controller("portfoliotags")); engine.Route(portfolio / "categories".Controller("portfoliocategories") / (Int)"id"); }