complete API swagger documentation
CI / scan_ruby (push) Failing after 29s
CI / scan_js (push) Successful in 13s
CI / lint (push) Successful in 21s
CI / test (push) Failing after 48s

This commit is contained in:
2026-02-04 01:33:02 +01:00
parent a139bde102
commit 441caabb98
6 changed files with 131 additions and 47 deletions
+4 -3
View File
@@ -1,6 +1,10 @@
Rails.application.routes.draw do
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
mount Api::Base => "/api"
get "/api/swagger", to: "api/swagger#index"
mount Rswag::Ui::Engine => "/api"
# 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
@@ -51,9 +55,6 @@ Rails.application.routes.draw do
end
end
mount Api::Base => "/api"
mount Rswag::Ui::Engine => "/api"
resources :entries do
resources :comments, only: [ :create ]
collection do