-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
61 lines (58 loc) · 1.29 KB
/
index.js
File metadata and controls
61 lines (58 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/**
* Created by steven on 17/5/5.
*/
var express = require('express');
var router = express.Router();
const Utils = require('../../common/utils');
/**
* apiName: postLogTest
* apiFuncType: post
* apiFuncUrl: /api/log/test
* @swagger
* /log/test/:
* post:
* description: log test
* tags:
* - v1
* - log
* consumes:
* - application/json
* parameters:
* - in: body
* name: body
* description: log
* schema:
* type: object
* required:
* - logName
* - error
* properties:
* logName:
* type: string
* error:
* type: string
* responses:
* 200:
* description: log
* schema:
* type: object
* properties:
* status:
* type: string
* data:
* type: object
* properties:
* log:
* type: string
* statusInfo:
* type: object
* properties:
* message:
* type: string
*
*/
router.post('/test', (req, res)=> {
console.log(req.body);
return res.json(Utils.result('0', {log: "test"}));
});
module.exports = router;