equal
deleted
inserted
replaced
545 |
545 |
546 function module.add_host(module) |
546 function module.add_host(module) |
547 module:depends("http"); |
547 module:depends("http"); |
548 module:provides("http", { |
548 module:provides("http", { |
549 default_path = "/http-bind"; |
549 default_path = "/http-bind"; |
|
550 cors = { |
|
551 enabled = true; |
|
552 }; |
550 route = { |
553 route = { |
551 ["GET"] = GET_response; |
554 ["GET"] = GET_response; |
552 ["GET /"] = GET_response; |
555 ["GET /"] = GET_response; |
553 ["POST"] = handle_POST; |
556 ["POST"] = handle_POST; |
554 ["POST /"] = handle_POST; |
557 ["POST /"] = handle_POST; |