Created
November 22, 2014 13:22
-
-
Save geobabbler/c236dc30e53ec00c2b53 to your computer and use it in GitHub Desktop.
Code snippet #1 for http://blog.geomusings.com/2013/12/11/building-a-simple-geodata-service-with-node-and-amazon-rds/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'), | |
geo = require('./routes/geo'); | |
var app = express(); | |
app.get('/countries/:id/bbox', geo.bbox); | |
app.get('/countries/:id/bbox/:srid', geo.bboxSrid); | |
app.get('/countries/:id/polygon', geo.polygon); | |
app.get('/countries/:id/polygon/:srid', geo.polygonSrid); | |
app.listen(3000); | |
console.log('Listening on port 3000...'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment