Skip to content

Instantly share code, notes, and snippets.

@gsmaverick
Created September 29, 2015 06:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsmaverick/be43f82b5bc8a99c4f2f to your computer and use it in GitHub Desktop.
Save gsmaverick/be43f82b5bc8a99c4f2f to your computer and use it in GitHub Desktop.
import S3File
object HelloWorldController extends Controller {
def index = {
val file = S3File("id", "path/to/file")
val json = Json.toJson(file)(S3File.linkSigningS3FileWrites)
Ok(json)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment