Skip to content

Instantly share code, notes, and snippets.

@jacksonh
Forked from atheken/DB Module.cs
Created November 26, 2010 03:00
Show Gist options
  • Save jacksonh/716225 to your computer and use it in GitHub Desktop.
Save jacksonh/716225 to your computer and use it in GitHub Desktop.
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));
}
}
}
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