UNPKG
@glandjs/common
Version:
alpha (1.0.0-alpha.1)
beta (1.0.0-beta)
latest (1.0.3-beta)
1.0.3-beta
1.0.2-beta
1.0.1-beta
1.0.1-alpha
1.0.0-beta
1.0.0-alpha.1
1.0.0-alpha.0
1.0.0-alpha
Glands is a web framework for Node.js (@common)
github.com/glandjs/gland
glandjs/gland
@glandjs/common
/
decorators
/
core
/
controller.decorator.js
10 lines
(9 loc)
•
290 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
"use strict"
;
Object
.
defineProperty
(
exports
,
"__esModule"
, {
value
:
true
});
exports
.
Controller
=
Controller
;
const
constant_1 =
require
(
"../../constant"
);
function
Controller
(
path
) {
return
(
target
) =>
{
Reflect
.
defineMetadata
(constant_1.
PATH_METADATA
, path, target); }; }