add sync API with swagger documentation at /api
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
Rswag::Ui.configure do |config|
|
||||
config.swagger_endpoint "/api/swagger", "Sanasto Wiki API"
|
||||
end
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user