diff options
Diffstat (limited to 'modules/luci-base/ucode/uhttpd.uc')
-rw-r--r-- | modules/luci-base/ucode/uhttpd.uc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/luci-base/ucode/uhttpd.uc b/modules/luci-base/ucode/uhttpd.uc new file mode 100644 index 0000000000..df1ecc7865 --- /dev/null +++ b/modules/luci-base/ucode/uhttpd.uc @@ -0,0 +1,12 @@ +{% + +import dispatch from 'luci.dispatcher'; +import request from 'luci.http'; + +global.handle_request = function(env) { + let req = request(env, uhttpd.recv, uhttpd.send); + + dispatch(req); + + req.close(); +}; |