add sync API with swagger documentation at /api
CI / scan_ruby (push) Successful in 23s
CI / scan_js (push) Successful in 15s
CI / lint (push) Successful in 22s
CI / test (push) Successful in 47s

This commit is contained in:
2026-01-31 22:39:12 +01:00
parent fa36305244
commit 4fe95ca538
7 changed files with 199 additions and 8 deletions
+3
View File
@@ -0,0 +1,3 @@
Rswag::Ui.configure do |config|
config.swagger_endpoint "/api/swagger", "Sanasto Wiki API"
end
+3
View File
@@ -51,6 +51,9 @@ 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