move terms & privacy to staticPages

Conflicts:

	lib/server/index.js
	src/server/index.coffee
	views/app/index.html
This commit is contained in:
Tyler Renelle
2012-09-02 22:46:11 -04:00
parent 14f9036f7b
commit 8a4185815f
9 changed files with 1014 additions and 972 deletions
+11 -1
View File
@@ -85,11 +85,21 @@ expressApp
.use(expressApp.router)
.use(serverError root)
## SERVER ONLY ROUTES ##
require('./api')(expressApp)
expressApp.post '/', (req) ->
require('../app/reroll').stripeResponse(req)
expressApp.get '/privacy', (req, res) ->
staticPages = derby.createStatic root
staticPages.render 'privacy', res
expressApp.get '/terms', (req, res) ->
staticPages = derby.createStatic root
staticPages.render 'terms', res
expressApp.all '*', (req) ->
throw "404: #{req.url}"