UNPKG
rest-express
Version:
latest (1.2.0)
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
A rest api framework based on express.
github.com/hstarorg/rest-express
hstarorg/rest-express
rest-express
/
examples
/
routes
/
test2.js
14 lines
(11 loc)
•
216 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
;
let
router =
require
(
'express'
).
Router
(); router.
get
(
'/test'
,
(
req, res
) =>
{ abc; res.
json
(
'abc'
); });
module
.
exports
= {
priority
:
10
,
router
: router,
prefix
:
'/test2/abc'
};