Skip to content

Commit

Permalink
Merge pull request #3 from fredrikn/master
Browse files Browse the repository at this point in the history
Added some few features, like error page, start page.. made some few fixes..
  • Loading branch information
panesofglass committed Aug 29, 2012
2 parents 223a669 + 5508337 commit 64c2382
Show file tree
Hide file tree
Showing 15 changed files with 649 additions and 885 deletions.
9 changes: 3 additions & 6 deletions samples/MvcWebApiSiteTest/App_Start/WebApiConfig.cs
@@ -1,7 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using System.Web.Http;

namespace MvcWebApiSiteTest
{
Expand All @@ -11,8 +8,8 @@ public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
routeTemplate: "{controller}/{id}",
defaults: new { controller = "Home", id = RouteParameter.Optional }
);
}
}
Expand Down

0 comments on commit 64c2382

Please sign in to comment.