Initial Sinatra project structure

This commit is contained in:
2022-12-10 01:59:30 -05:00
parent 7bc5ef2e82
commit bdc316ba9e
11 changed files with 158 additions and 0 deletions

9
app/controllers/auth.rb Normal file
View File

@ -0,0 +1,9 @@
class AuthController < Sinatra::Base
get '/login' do
erb :'auth/login', :locals => {
:title => 'Login to your account'
}
end
end

9
app/controllers/index.rb Normal file
View File

@ -0,0 +1,9 @@
class IndexController < Sinatra::Base
get '/' do
erb :index, :locals => {
:title => 'Home'
}
end
end

10
app/settings.rb Normal file
View File

@ -0,0 +1,10 @@
class Sinatra::Base
configure do
enable :sessions
set :views, './views'
set :public_folder, './public'
end
end