UNPKG

dota2-radiant

Version:

Radiant: a small little library/framework for building awesome apps backed by the Dota 2 WebAPI. Utilizes Node with Express

34 lines (27 loc) 655 B
/*! * Module dependencies. */ var app = require('express'); var routes = require('./routes'); var models = require('./models'); var dazzle = require('dazzle'); var dota2Api = new dazzle('52E48462B1694D06C4411A5D6E7EA304'); var inited = false; var Dota2_Bootstrap = { app: app, dazzle: dota2Api, models: models, init: function (app) { if (inited) { return this; } this.configureRoutes(app); this.app = app; inited = true; return this; }, configureRoutes: function (app) { routes.bind(app); } }; var common = module.exports = exports = Dota2_Bootstrap;