Initial commit

This commit is contained in:
2026-05-18 13:17:28 -04:00
committed by GitHub
commit 16fadfd529
91 changed files with 3321 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
Rails.application.routes.draw do
mount Rswag::Ui::Engine => "/api-docs"
mount Rswag::Api::Engine => "/api-docs"
devise_for :users, skip: [ :registrations, :passwords, :confirmations ]
# 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.
# 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
namespace :api do
namespace :v1 do
post "signup", to: "auth#signup"
post "login", to: "auth#login"
post "logout", to: "auth#logout"
post "refresh", to: "auth#refresh"
get "protected", to: "protected#index"
get "profile", to: "profile#show"
# admin routes
get "admin/dashboard", to: "admin#dashboard"
end
end
end