Skip to content

Instantly share code, notes, and snippets.

@leafo
Created June 5, 2013 22:29
Show Gist options
  • Save leafo/5717850 to your computer and use it in GitHub Desktop.
Save leafo/5717850 to your computer and use it in GitHub Desktop.
lapis = require "lapis"
db = require "lapis.db"
lapis.serve class extends lapis.Application
"/": =>
json: db.query "select * from v_domains"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment