Skip to content

Instantly share code, notes, and snippets.

@CoreyKaylor
Created November 18, 2012 03:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CoreyKaylor/4103403 to your computer and use it in GitHub Desktop.
Save CoreyKaylor/4103403 to your computer and use it in GitHub Desktop.
Getting Started with FubuMVC Again
using System;
using FubuMVC.Core;
using HelloWorld.Features.Home;
namespace HelloWorld
{
public class HelloWorldRegistry : FubuRegistry
{
public HelloWorldRegistry()
{
Actions.FindBy(x =>
{
x.Applies.ToThisAssembly();
x.IncludeClassesSuffixedWithController();
});
Routes.HomeIs<HomeInputModel>()
.ConstrainToHttpMethod(x => x.Method.Name.Equals("Get", StringComparison.InvariantCultureIgnoreCase), "GET")
.IgnoreControllerNamespaceEntirely(); //not needed for sample, but you will find it useful
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment