UNPKG
wires-domain
Version:
latest (1.6.73)
1.6.73
1.6.72
1.6.71
1.6.7
1.6.6
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.5.9
1.5.8
1.5.7
1.5.6
1.5.5
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.0
1.3.0
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
0.0.80
0.0.5
0.0.2
0.0.1
0.0.0
Restfull service with dependency injection
wires-domain
/
testservices
/
model.js
17 lines
(13 loc)
•
270 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var
domain =
require
(
'../index'
);
var
Promise
=
require
(
'promise'
);
var
Class
=
require
(
'wires-class'
); domain.
service
(
"item"
,
function
(
) {
return
domain.
Model
.
extend
({
init
:
function
(
$a
) {
this
.
a
= $a; },
pukka
:
function
(
) {
return
this
.
a
; } }); });