Concepts of modular tonton web application that share authentication

This commit is contained in:
Mateus Cezário Barreto 2025-11-21 00:17:42 -03:00
commit eb759a8454
7 changed files with 192 additions and 75 deletions

13
config.ru Normal file
View 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