Skip to content

Instantly share code, notes, and snippets.

@darrelmiller
Created April 26, 2014 13:26
Show Gist options
  • Save darrelmiller/11320012 to your computer and use it in GitHub Desktop.
Save darrelmiller/11320012 to your computer and use it in GitHub Desktop.
class Startup
{
public void Configuration(IAppBuilder app)
{
var webApiconfig = new HttpConfiguration();
webApiconfig.Routes.MapHttpRoute("test","Test",new {controller="Test"});
app.UseWebApi(webApiconfig);
// Turn cross domain on
var config = new HubConfiguration { EnableCrossDomain = true };
app.MapHubs(config);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment