public void RegisterRoutes(RouteCollection routes)
{
routes.MapHttpRoute(null, "api/getapikey/{username}", new { controller = "GetUsersApiKey", action = "Get" }, new { httpMethod = new HttpMethodConstraint(new string[] { "GET" }) });
routes.MapHttpRoute(null, "api/getapikey", new { controller = "GetUsersApiKey", action = "Post" }, new { httpMethod = new HttpMethodConstraint(new string[] { "POST" }) });
routes.MapHttpRoute(null, "api/getapikey/key/{apikey}", new { controller = "GetUsersApiKey", action = "PostAPIKey" }, new { httpMethod = new HttpMethodConstraint(new string[] { "POST" }) });
}