Skip to content

Instantly share code, notes, and snippets.

@musale
Created March 12, 2018 09:13
Show Gist options
  • Save musale/abf68c9ef75e09f44d8af6149edf390e to your computer and use it in GitHub Desktop.
Save musale/abf68c9ef75e09f44d8af6149edf390e to your computer and use it in GitHub Desktop.
package controllers
import javax.inject.Inject
import play.api.mvc._
import play.api.libs.json._
// Quotes contoller
class QuotesController @Inject()(cc: ControllerComponents) extends AbstractController(cc) {
def fetch = Action { implicit request =>
Ok(Json.obj("status"-> "OK"))
}
def add = Action {implicit request =>
Ok(Json.obj("status"-> "OK"))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment