Created
October 26, 2015 14:50
-
-
Save hmadison/472b086b7e36fb14c9b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
require 'rom' | |
require 'rom-roda' | |
require 'rom-sql' | |
class AppCore < Roda | |
plugin :rom, default: { | |
setup: [:sql, 'sqlite::memory'], | |
plugins: [:auto_registration] | |
}, | |
load_path: 'models' | |
route do |r| | |
# GET / request | |
r.root do | |
'hi' | |
end | |
end | |
end | |
run AppCore.freeze.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment