Closed alinazulfiqar closed 3 months ago
You just have to mount it on your app route:
Rails.application.routes.draw do
mount Motor::Admin => '/motor_admin'
end
And set the env variables MOTOR_AUTH_USERNAME and MOTOR_AUTH_PASSWORD. If you use dotenv, you can have a .env
file with:
MOTOR_AUTH_USERNAME="my-user"
MOTOR_AUTH_PASSWORD="s3cr3tp4ssw0rd"
I see this in the documentation:
but I'm not sure how to set up
routes.rb
to trigger a basic username/password prompt from the browser when hitting/motor_admin