Skip to content

Instantly share code, notes, and snippets.

@henriquegogo
Last active August 5, 2018 17:42
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henriquegogo/036999a04b94dff29a40 to your computer and use it in GitHub Desktop.
Save henriquegogo/036999a04b94dff29a40 to your computer and use it in GitHub Desktop.
How to create a simple webservice with Orbit and Lua
#!./bin/orbit
local orbit = require 'orbit'
module('app', package.seeall, orbit.new)
local routes = {
index = function(web)
return 'Start page<br><a href=/about>About</a>'
end,
about = function(web)
return 'Its me! Mario!'
end
}
app:dispatch_get(routes.index,'/')
app:dispatch_get(routes.about,'/about')
return _M
@bajes1
Copy link

bajes1 commented Jan 16, 2018

how to call google maps from lua

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment