UNPKG

dota2-radiant

Version:

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

15 lines (12 loc) 400 B
var _ = require('underscore'); var radiant = require('../dota2-radiant'); var app = radiant.app; var MatchDetailsController = { 'index': function (req, res) { var match_id = req.params.match_id; radiant.dazzle.getMatchDetails(match_id, function (err, response) { res.render('match', response); }); } }; module.exports = exports = MatchDetailsController;