質問編集履歴
2
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -68,7 +68,7 @@
|
|
68
68
|
|
69
69
|
```javascript
|
70
70
|
|
71
|
-
// /roue
|
71
|
+
// /routes/v1/index.js-------------------
|
72
72
|
|
73
73
|
|
74
74
|
|
@@ -144,6 +144,62 @@
|
|
144
144
|
|
145
145
|
|
146
146
|
|
147
|
+
// /app/routes/v1/article.js
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
var express = require('express');
|
152
|
+
|
153
|
+
var router = express.Router();
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
router.get('/test', function(req, res) {
|
160
|
+
|
161
|
+
res.json({
|
162
|
+
|
163
|
+
message: 'this is article api'
|
164
|
+
|
165
|
+
});
|
166
|
+
|
167
|
+
});
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
module.exports = router;
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
// /app/routes/v1/user.js
|
176
|
+
|
177
|
+
var express = require('express');
|
178
|
+
|
179
|
+
var router = express.Router();
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
router.get('/test', function (req, res) {
|
186
|
+
|
187
|
+
res.json({
|
188
|
+
|
189
|
+
message:"This is user api"
|
190
|
+
|
191
|
+
});
|
192
|
+
|
193
|
+
});
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
module.exports = router;
|
200
|
+
|
201
|
+
|
202
|
+
|
147
203
|
```
|
148
204
|
|
149
205
|
|
1
タグ追加
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|