2015-01-08 09:43:49 -08:00

17 lines
311 B
PHP

<?php
class Controller_api_travisci extends Crunchbutton_Controller_Rest {
public function init() {
switch (c::getPagePiece(2)) {
case 'build':
// just send an event telling us to refresh
$res = Event::emit([
'room' => [
'travisci.builds'
]
], 'update');
break;
}
}
}