Last active
November 6, 2017 04:04
-
-
Save DanielTimLee/a6efd485698cd1a5e6c10c2893e466f8 to your computer and use it in GitHub Desktop.
lapis importing with method
This file contains hidden or 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
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, | |
} | |
} |
This file contains hidden or 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
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