package controllers

import play.api._
import play.api.mvc._
import play.api.libs.json._

object Application extends Controller {

  def index = Action {
    Ok("Hello World")
  }

  def slack = Action(parse.multipartFormData) { request =>
    val result = request.toString()
    Ok(Json.obj("status" -> "OK", "message" -> result))
  }
}
package controllers

import play.api._
import play.api.mvc._
import play.api.libs.json._

object Application extends Controller {
  def index = Action {
    Ok("Hello World")
  }

  def slack = Action { request =>
    val params = request.body.asFormUrlEncoded
    val teamId = params.get("team_id")(0)
    Ok(Json.obj("status" -> "OK", "message" -> teamId))
  }
}

Add demo endpoint for slack.
Add demo endpoint for slack.
