Remove simple resource example

This commit is contained in:
Ritchie Martori 2013-04-17 17:43:51 -07:00
parent b9a239db32
commit 7b9d7b28a9
3 changed files with 0 additions and 29 deletions

View File

@ -1,7 +0,0 @@
var asteroid = require('../../');
var app = asteroid();
app.use(asteroid.configure());
app.use(asteroid.resources());
app.listen(3000);

View File

@ -1,8 +0,0 @@
{
"module": "resource",
"options": {
"path": "/example-resource",
"msg": "my message?"
},
"main": "example.js"
}

View File

@ -1,14 +0,0 @@
// any module instance can be required by its directory
var exampleResource = require('.');
// exampleResource.app is an express sub app
// anything registered (routes, middleware)
// will only run relative to the defined root
// '/' resolves to '/example-resource'
exampleResource.app.get('/', function (req, res) {
res.send(exampleResource.options.msg + '??????');
});
exampleResource.app.get('/foo', function (req, res) {
res.send('foo!!!');
});