var express = require('express');
var router = express.Router();
var apps_controller = require('../controllers/appsController');

/* GET App listing. */
router.get('/', function(req, res, next){
    res.render('apps', { title: 'apps' });
});

router.get('/set', apps_controller.set);
router.get('/update', apps_controller.update);
router.post('/rpc', apps_controller.rpc);

module.exports = router;
