Skip to content

Instantly share code, notes, and snippets.

@laser
Last active August 29, 2015 13:59
Show Gist options
  • Save laser/10668772 to your computer and use it in GitHub Desktop.
Save laser/10668772 to your computer and use it in GitHub Desktop.
12: MailService Sinatra container
# services/mail_service/main.rb
require 'barrister-sinatra'
opts = {
mount_path: '/api',
port: ENV['PORT']
}
Barrister::SinatraContainer.new('./interface.json', MailService.new, opts).start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment