Skip to content

Commit

Permalink
Added default controller to example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rinsen committed Apr 20, 2015
1 parent cca861f commit 2821e4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Expand Up @@ -86,6 +86,14 @@ To add a default controller and to change the default controller method, default
webServer.StartServer();
}
}

public class DefaultController : Controller
{
public void MyMethodName()
{
SetHtmlResult("<!DOCTYPE html><html><body><h1>Default controller example</h1></body></html>");
}
}

#Getting Started
---------------
Expand Down

0 comments on commit 2821e4a

Please sign in to comment.