Skip to content
Myr

simple.js

This file

Path

examples/simple.js

9 lines · 147 bytes · JavaScript

Last changed by

merged from upstreamcsausdevbefore adoptiona3acc21

History of this file

Take it

merged from upstreamcsausdevbefore adoptiona3acc21

line 1why, one step back
1

Added example, extra info to Readmecsausdevbefore adoption3491ff3

lines 2–4why, one step back
2require.paths.unshift("./lib")
3require('express')4

merged from upstreamcsausdevbefore adoptiona3acc21

lines 5–7why, one step back
5get('/i/like/:object', function() {
6 'You like "' + param('object') + '"'7})

Added example, extra info to Readmecsausdevbefore adoption3491ff3

line 8why, one step back
8

merged from upstreamcsausdevbefore adoptiona3acc21

line 9why, one step back
9Express.start()