Skip to content

Commit 70b7ff0

Browse files
author
Brett Chaldecott
committed
feat: added the rails engine configuration to the documentation.
1 parent 9a30880 commit 70b7ff0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/content/docs/developer-tools/sdks/backend/ruby-sdk.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,13 @@ To enable the AuthController, you need to add the following routes to your `conf
147147
get "client_credentials_auth" => "auth#client_credentials_auth"
148148
end
149149
```
150+
151+
If you decide instead to use the rails engine, you can add the following to your `config/routes.rb` file:
152+
153+
```ruby
154+
mount KindeSdk::Engine, at: "/kinde_sdk"
155+
```
156+
150157
### Usage
151158
To use the AuthController consume the routes in your application. For example in a Rails view file use the auth path to trigger the login flow:
152159

0 commit comments

Comments
 (0)