Update routes.rb

This commit is contained in:
G-Chubinidze 2023-09-05 11:57:47 +04:00 committed by GitHub
parent b7da98c1dd
commit ff7743b7e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,8 +6,6 @@ Rails.application.routes.draw do
post 'access_tokens/revoke', to: 'doorkeeper/access_tokens#revoke'
# Addons
mount Scinote::AI::Engine => '/'
def draw(routes_name)
instance_eval(File.read(Rails.root.join("config/routes/#{routes_name}.rb")))