0

http for processing my routes is there any way i can pass html as response to the get request

path("employees" / "confirm" / Segments(1)) { confirmationCode =>       
  get {
    complete {
        UserBo().confirmEmail(confirmationCode(0)).map[ToResponseMarshallable]{
          case Right(message) => (OK,ContentTypes.`text/html(UTF-8)`,message.toString)
          case Left(e) => Left(e)
        }
    }
  }
}

im getting a jason response for this code is there any way i can get html as response

cmbaxter
  • 35,283
  • 4
  • 86
  • 95
Mahi Tej Gvp
  • 984
  • 1
  • 14
  • 34

0 Answers0