Skip to content
Snippets Groups Projects
Commit 021a2031 authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Add project update listener to web api

parent 24913221
No related branches found
No related tags found
No related merge requests found
......@@ -4,12 +4,13 @@ import de.thecodelabs.logger.Logger
import de.thecodelabs.plugins.{Plugin, PluginDescriptor}
import de.tobias.playpad.PlayPadPlugin
import de.tobias.playpad.plugin.api.websocket.WebSocketHandler
import de.tobias.playpad.plugin.api.websocket.listener.PadStatusListener
import de.tobias.playpad.plugin.api.websocket.listener.{PadStatusListener, ProjectListener}
import spark.Spark
class WebApiPlugin extends Plugin {
override def startup(pluginDescriptor: PluginDescriptor): Unit = {
PlayPadPlugin.getInstance().addPadListener(new PadStatusListener)
PlayPadPlugin.getInstance().addGlobalListener(new ProjectListener)
Logger.debug("Enable Web API Plugin")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment