Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit 8085a00

Browse files
committed
Add docs for createRest
1 parent f65e0eb commit 8085a00

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

lib/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
import { createContext } from './context'
22

3+
/**
4+
*
5+
* @param {Object} config Root configuration
6+
* @param {Function} applyRoot Main childs for root `childs()`
7+
* @example
8+
* const routes = createRest({}, childs(
9+
* resources('article', {}, ArticlesController)
10+
* ))
11+
*/
312
export function createRest(config, applyRoot) {
413
const context = createContext()
514

0 commit comments

Comments
 (0)