Initial commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user