Skip to content

Commit

Permalink
docs(scully): fix documentation snippet on router plugin type page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gkamtzir authored Sep 1, 2021
1 parent f78fb70 commit 483d6b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Reference/plugins/types/router.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ A **`router` plugin** is used to convert the raw route-config into a list of rou

Lets implement a **`router` plugin** that turns the raw route into five distinct `HandledRoutes` from an application containing the following route: `/user/:userId`.

```javascript
const { registerPlugin } = require('@scullyio/scully');
```typescript
import { HandledRoute, registerPlugin } from "@scullyio/scully"

function userIdPlugin(route: string, config = {}): Promise<HandledRoute[]> {
return Promise.resolve([
Expand Down

0 comments on commit 483d6b1

Please sign in to comment.