Add auth and ruby update
This commit is contained in:
parent
5d50194f39
commit
fbf6923835
43 changed files with 614 additions and 64 deletions
3
config/initializers/rodauth.rb
Normal file
3
config/initializers/rodauth.rb
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
Rodauth::Rails.configure do |config|
|
||||
config.app = "RodauthApp"
|
||||
end
|
||||
|
|
@ -72,6 +72,12 @@ de-CH:
|
|||
name: Bezeichnung
|
||||
comment_html: Projektbeschreibung
|
||||
models:
|
||||
account:
|
||||
one: Konto
|
||||
other: Konten
|
||||
check:
|
||||
one: Check
|
||||
other: Checks
|
||||
check:
|
||||
one: Check
|
||||
other: Checks
|
||||
|
|
|
|||
|
|
@ -57,4 +57,5 @@ de-CH:
|
|||
highest: "A (hoch)"
|
||||
high: "B (mittel)"
|
||||
normal: "C (niedrig)"
|
||||
low: "D (nice to have)"
|
||||
low: "D (nice to have)"
|
||||
backoffice: Verwaltung
|
||||
|
|
@ -1,24 +1,29 @@
|
|||
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
||||
Rails.application.routes.draw do
|
||||
resources :links
|
||||
resources :link_categories
|
||||
namespace :admin do
|
||||
get "backup", to: "backups#show", as: :backup
|
||||
end
|
||||
constraints Rodauth::Rails.authenticate do
|
||||
namespace :admin do
|
||||
get "backup", to: "backups#show", as: :backup
|
||||
end
|
||||
|
||||
resources :checklist_entries
|
||||
resources :checklists
|
||||
resources :checks
|
||||
resources :elements
|
||||
resources :link_categories
|
||||
resources :links
|
||||
resources :reports
|
||||
resources :success_criteria
|
||||
|
||||
resources :reports
|
||||
resources :checklists
|
||||
resources :checks
|
||||
|
||||
resources :checklist_entries
|
||||
resources :success_criteria
|
||||
resources :elements
|
||||
get "backoffice/show", as: :backoffice
|
||||
|
||||
get "profile", to: "rodauth#profile"
|
||||
end
|
||||
|
||||
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
||||
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
||||
get 'up' => 'rails/health#show', as: :rails_health_check
|
||||
|
||||
if Rails.env.development?
|
||||
if Rails.env.development? || ENV.fetch("ENABLE_BENCHMARK", false)
|
||||
namespace :benchmarking do
|
||||
post "read_heavy"
|
||||
post "write_heavy"
|
||||
|
|
@ -33,6 +38,5 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
|
||||
# Defines the root path route ("/")
|
||||
root 'home#show'
|
||||
root "home#show"
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue