Skip to content

@ag4ve /app.js
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
flatiron.js
var path = require('path'),
flatiron = require('flatiron'),
director = require('director'),
ecstatic = require('ecstatic'),
app = flatiron.app,
plugins = flatiron.plugins;
var routes = require('./lib/routes.js');
app.config.file({ file: path.join(__dirname, 'config', 'config.json') });
app.use(plugins.http);
app.router = routes;
app.use(plugins.ecstatic, {
root: __dirname,
autoIndex: true
} );
app.start(3000);
var routes = {
'/test': {
get: { "hello": "world" }
}
}
module.exports = routes;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.