Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 24fc56e

Browse files
committed
fix ApiOptions import
1 parent 8830190 commit 24fc56e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/reference/csharp/api/api.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Application.Run();
6464

6565
```csharp
6666
using Application = Nitric.Sdk.Application;
67+
using Nitric.Sdk.Resource;
6768

6869
private HttpContext ValidateRequest(HttpContext ctx, Func<HttpContext, HttpContext> next)
6970
{
@@ -84,6 +85,7 @@ If you need to put all the routes in your api below a shared base path, you can
8485

8586
```csharp
8687
using Application = Nitric.Sdk.Application;
88+
using Nitric.Sdk.Resource;
8789

8890
var api = Application.Api("main", new ApiOptions(
8991
BaseRoute: "/api/v1"
@@ -97,6 +99,7 @@ Application.Run();
9799
```csharp
98100
using Application = Nitric.Sdk.Nitric;
99101
using System.Collections.Generic;
102+
using Nitric.Sdk.Resource;
100103

101104
var secureApi = Application.Api("main", new ApiOptions(
102105
// You can optionally apply security rules to the entire API

0 commit comments

Comments
 (0)