You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| ITursoApiTokensService | Manage platform API tokens. |
41
41
42
+
## Dependency Injection
42
43
The easiest way to use the Turso Platform API Service is using dependency injection.
43
44
44
-
## Dependency Injection
45
45
Add a `TursoPlatformApi` section to your `appsettings.json` file. Use `appsettings.Development.json` to avoid keys ending up in your repo.
46
46
47
47
```json
@@ -53,7 +53,7 @@ Add a `TursoPlatformApi` section to your `appsettings.json` file. Use `appsettin
53
53
}
54
54
```
55
55
56
-
After that you can add Turso Platform API Service using the provided services extension method.
56
+
After that you can add Turso Platform API Service using the provided services extension method. If you prefer, you can pass in your org slug and API key to the `AddTursoPlatformService` method instead of using `appsettings.json`.
0 commit comments