Find file
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (7 sloc) 279 Bytes
http = require 'http'
strategy = require './strategy'
{Router,handle} = require './router'
router = new Router
router.register /youtu(\.be|be\.com)/i, strategy.youtube
router.register /.*/, strategy.base
(http.createServer (handle router)).listen process.env.app_port or 8080