Closed camdez closed 10 years ago
Looks good to me so far. I think as soon as we released this gem (version 0.1.0 or whatever) we should pull the admin panel out into a separate gem that depends on this one.
For configuring the data store, could we set some options in Sinatra? Something like this: http://www.sinatrarb.com/extensions.html#setting-options-and-other-extension-setup.
set :stoplight_data_store, Stoplight::DataStore::Redis.new(...)
Yeah, as long as we're OK with requiring the user to actually modify the admin panel script. Which doesn't work so well in a gem, right?
Ah, right you are. I was thinking we could provide the admin panel as an extension. Then the user could add it to their Sinatra app and configure it. (It would probably be the only thing in said Sinatra app, though.)