Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
13 lines (8 sloc) 253 Bytes
mate = require '../../coffeemate'
mate.get '/', ->
@resp.end 'Hello World'
mate.get '/greet/:name', ->
@resp.end 'Hello ' + @req.params.name
mate.get '/greet_if/:name?', ->
@resp.end 'Hello ' + (@req.params.name or 'World')
mate.listen 3000
Jump to Line
Something went wrong with that request. Please try again.