Created
November 18, 2012 03:50
-
-
Save CoreyKaylor/4103403 to your computer and use it in GitHub Desktop.
Getting Started with FubuMVC Again
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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