Merge branch 'dev' of ../rebble.net into dev

This commit is contained in:
Mike Macgirvin 2023-09-21 23:35:58 -07:00
commit 11f5174fdd

View file

@ -1,22 +0,0 @@
<?php
namespace Code\Module;
use Code\Web\Controller;
/**
* serve javascript files from addon directory
*/
class Addon extends Controller
{
public function init()
{
if (file_exists(App::$cmd) && str_contains(App::$cmd, '.js')) {
header("Content-Type: text/javascript");
Stdio::fcopy(App::$cmd, 'php://output');
killme();
}
}
}