Skip to content

Instantly share code, notes, and snippets.

@atheken
Created November 26, 2010 00:28
Show Gist options
  • Save atheken/716112 to your computer and use it in GitHub Desktop.
Save atheken/716112 to your computer and use it in GitHub Desktop.
PiesApp.cs
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.Write(BitConverter.GetBytes(docId));
}
}
}
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