-
-
Save jacksonh/716225 to your computer and use it in GitHub Desktop.
This file contains 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 Manos; | |
namespace pies | |
{ | |
public class DBModule : ManosModule | |
{ | |
public DBModule () | |
{ | |
} | |
public void Read(PiesApp app, IManosContext ctx, int docId) | |
{ | |
//don't do anything special yet. | |
ctx.Response.End(BitConverter.GetBytes(docId)); | |
} | |
} | |
} |
This file contains 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 Manos; | |
using System; | |
namespace pies { | |
public class PiesApp : ManosApp { | |
public PiesApp () | |
{ | |
Route ("/Content/", new StaticContentModule ()); | |
this.Route("/DB",new DBModule()); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment