diff --git a/app/controllers/sessions_controller.rb b/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..153278e --- /dev/null +++ b/app/controllers/sessions_controller.rb @@ -0,0 +1,5 @@ +class SessionsController < ApplicationController + def index + render inertia: 'LoginPage' + end +end diff --git a/app/frontend/components/BaseIcon.vue b/app/frontend/components/BaseIcon.vue index ca1530c..171f4b6 100644 --- a/app/frontend/components/BaseIcon.vue +++ b/app/frontend/components/BaseIcon.vue @@ -1,6 +1,6 @@ diff --git a/config/routes.rb b/config/routes.rb index ca3cfd9..2e1567c 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -12,6 +12,10 @@ get 'inertia-example', to: 'inertia_example#index' post 'inertia-example', to: 'inertia_example#increase_counter' + + get 'login', to: 'sessions#index' + post 'login', to: 'sessions#create' + # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.