create basic backend with login

This commit is contained in:
2026-09-21 21:43:30 +03:00
commit e1c4a5b9ba
79 changed files with 2834 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
Rails.application.routes.draw do
namespace :api do
post "register", to: "registrations#create"
post "login", to: "sessions#create"
delete "logout", to: "sessions#destroy"
get "me", to: "sessions#me"
end
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
get "up" => "rails/health#show", as: :rails_health_check
end