tinyforms/config/routes.rb
2020-04-05 23:35:53 +02:00

16 lines
404 B
Ruby

Rails.application.routes.draw do
# For details on the DSL available within this file, see https://guides.rubyonrails.org/routing.html
resources :forms do
resources :submissions
end
post '/s/:form_id' => 'submissions#create'
get '/login' => 'sessions#new', as: :login
get '/logout' => 'sessions#destroy', as: :logout
get '/auth' => 'sessions#auth', as: :auth
root 'home#index'
end