Skip to content

Instantly share code, notes, and snippets.

@DanielTimLee
Last active November 6, 2017 04:04
Show Gist options
  • Save DanielTimLee/a6efd485698cd1a5e6c10c2893e466f8 to your computer and use it in GitHub Desktop.
Save DanielTimLee/a6efd485698cd1a5e6c10c2893e466f8 to your computer and use it in GitHub Desktop.
lapis importing with method
local lapisR = require "lapis.request"
local lapisH = require "lapis.html"
--
local ms = require("moonscript")
local c = ms.loadfile("kong.plugins.shepherd.views.layout")
local index = require("kong.plugins.shepherd.views.index")
return {
["/shepherd/list/"] = {
GET = function(self, dao_factory)
-- crud.paginated_set(self, dao_factory.acls)
return { render = index, layout=c, content_type = 'text/html' }
end,
}
}
require "moonscript"
local c = require("kong.plugins.shepherd.views.layout")
local index = require("kong.plugins.shepherd.views.index")
return {
["/shepherd/list/"] = {
GET = function(self, dao_factory)
-- crud.paginated_set(self, dao_factory.acls)
return { render = index, layout=c, content_type = 'text/html' }
end,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment