Concepts of modular tonton web application that share authentication
This commit is contained in:
parent
7fe8986bdb
commit
eb759a8454
7 changed files with 192 additions and 75 deletions
13
config.ru
Normal file
13
config.ru
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
require_relative 'example/app'
|
||||
require_relative 'example/modules/module'
|
||||
|
||||
# Require TonTon modules if you want
|
||||
|
||||
use Rack::Session::Cookie, key: 'rack.session', secret: ENV.fetch('SESSION_SECRET')
|
||||
|
||||
app = Rack::URLMap.new(
|
||||
'/' => ExampleApp.new,
|
||||
'/module' => ExampleModule.new
|
||||
)
|
||||
|
||||
run app
|
||||
Loading…
Add table
Add a link
Reference in a new issue