(refs #32)Add JavaScript API

This commit is contained in:
Naoki Takezoe
2014-06-08 00:37:01 +09:00
parent daf5fc434c
commit 378c2c39a8
3 changed files with 50 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ class PluginActionInvokeFilter extends Filter with SystemSettingsService {
(req, res) match {
case (request: HttpServletRequest, response: HttpServletResponse) => {
val path = req.asInstanceOf[HttpServletRequest].getRequestURI
val action = plugin.PluginSystem.actions.find(_.path == path)
val action = plugin.PluginSystem.globalActions.find(_.path == path)
if(action.isDefined){
val result = action.get.function(request, response)