We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 205fc75 commit 7d9f46bCopy full SHA for 7d9f46b
1 file changed
test/index.js
@@ -6,13 +6,23 @@ import test from 'ava'
6
// test something
7
test.todo('testSomething')
8
9
-/*
+/* API
10
const pattyOpts = {port: 8081}
11
const patty = require('paternity')
12
const handleIt = require('./some-other-resource')
13
14
await patty.init(pattyOpts)
15
-await patty.register('some-resource')
16
-await patty.register('some-other-resource', handleIt)
+const someResource = await patty.register('some-resource')
+const someOtherResource = await patty.register('some-other-resource', handleIt)
17
await patty.start()
18
*/
19
+
20
+/* RESOURCE OBJECT
21
+{
22
+ search: () => {},
23
+ create: () => {},
24
+ read: () => {},
25
+ update: () => {},
26
+ delete: () => {}
27
+}
28
+*/
0 commit comments