Created
October 22, 2015 05:49
-
-
Save Shell64/3f7e8308c2499bc43e25 to your computer and use it in GitHub Desktop.
LuaWebserver2 simple POST example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Application.POST(Information, Content) | |
if Information.Parameter == "MyFuncName" then | |
return '{"d": "1"}', 200 | |
else | |
return '{"d": "0"}', 200 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment