Skip to content

Commit

Permalink
Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaz87 committed Oct 25, 2018
1 parent 1ce54c8 commit f5abcd5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions prelude.lua → launcher.lua
Expand Up @@ -9,5 +9,17 @@ log.outfile = "log/lighttouch"
require "table_ext"
require "string_ext"
require "underscore_alias"
require "package_loader"

log.info("[loaded] LightTouch")


-- Handler function
return function (request)
events["incoming_request_received"]:trigger(request)
for k, v in pairs(rules) do
v.rule(request, events)
end

return response
end

0 comments on commit f5abcd5

Please sign in to comment.