Skip to content

Commit

Permalink
nothing to see here
Browse files Browse the repository at this point in the history
  • Loading branch information
nrn committed Jan 19, 2012
1 parent fa0d53d commit c33980c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions server/express/index.js
@@ -1,4 +1,5 @@
// index.js
// Simple file so that if you require this directory
// in node it instead requires ./lib/server.coffee
require('coffee-script');
module.exports = require('./lib/server');
8 changes: 6 additions & 2 deletions server/express/lib/server.coffee
@@ -1,10 +1,12 @@
# ** server.coffee ** is the main guts of the express version
# **server.coffee** is the main guts of the express version
# of Smallest Federated Wiki. The CLI and Farm are just front ends
# for setting arguments, and spawning servers. In a complex system
# you would probably want to replace the CLI/Farm with your own code,
# and use server.coffee directly.
#
#### Dependencies
# anything not in the standard library can be installed with an
# anything not in the standard library is included in the repo, or
# can be installed with an:
# npm install
express = require('express')
fs = require('fs')
Expand Down Expand Up @@ -142,6 +144,8 @@ module.exports = exports = (argv) ->
)

##### Get routes
# Routes have mostly been kept together by http verb, with the exception
# of the openID related routes which are at the end together.
app.get(///^/remote/([a-zA-Z0-9:\.-]+)/([a-z0-9-]+)\.json$///, (req, res) ->
getopts = {
host: req.params[0]
Expand Down

0 comments on commit c33980c

Please sign in to comment.