This repository is for zephyr, which is implemented for a GUI of Eos.
Revisión | b26402fee76200161bcf155f2abc6fbf0f7ab9cf (tree) |
---|---|
Tiempo | 2016-02-03 13:59:38 |
Autor | himetani_cafe <fumifumi@yasu...> |
Commiter | himetani_cafe |
[Develop and Manual test] /api/v1/all/workspace/directory
@@ -32,5 +32,11 @@ namespace app.services { | ||
32 | 32 | } |
33 | 33 | return <declares.IResponseFileInfo>this.resource(endPoint).get(); |
34 | 34 | } |
35 | + | |
36 | + public getDirectories(): ng.resource.IResource<declares.IResponse> { | |
37 | + var endPoint = '/spi/v1/workspace/'; | |
38 | + | |
39 | + return this.resource(endPoint).get(); | |
40 | + } | |
35 | 41 | } |
36 | 42 | } |
@@ -41037,6 +41037,10 @@ | ||
41037 | 41037 | } |
41038 | 41038 | return this.resource(endPoint).get(); |
41039 | 41039 | }; |
41040 | + APIEndPoint.prototype.getDirectories = function () { | |
41041 | + var endPoint = '/spi/v1/workspace/'; | |
41042 | + return this.resource(endPoint).get(); | |
41043 | + }; | |
41040 | 41044 | return APIEndPoint; |
41041 | 41045 | })(); |
41042 | 41046 | services.APIEndPoint = APIEndPoint; |
@@ -41434,6 +41438,10 @@ | ||
41434 | 41438 | } |
41435 | 41439 | return this.resource(endPoint).get(); |
41436 | 41440 | }; |
41441 | + APIEndPoint.prototype.getDirectories = function () { | |
41442 | + var endPoint = '/spi/v1/workspace/'; | |
41443 | + return this.resource(endPoint).get(); | |
41444 | + }; | |
41437 | 41445 | return APIEndPoint; |
41438 | 41446 | })(); |
41439 | 41447 | services.APIEndPoint = APIEndPoint; |
@@ -41831,6 +41839,10 @@ | ||
41831 | 41839 | } |
41832 | 41840 | return this.resource(endPoint).get(); |
41833 | 41841 | }; |
41842 | + APIEndPoint.prototype.getDirectories = function () { | |
41843 | + var endPoint = '/spi/v1/workspace/'; | |
41844 | + return this.resource(endPoint).get(); | |
41845 | + }; | |
41834 | 41846 | return APIEndPoint; |
41835 | 41847 | })(); |
41836 | 41848 | services.APIEndPoint = APIEndPoint; |
@@ -42228,6 +42240,10 @@ | ||
42228 | 42240 | } |
42229 | 42241 | return this.resource(endPoint).get(); |
42230 | 42242 | }; |
42243 | + APIEndPoint.prototype.getDirectories = function () { | |
42244 | + var endPoint = '/spi/v1/workspace/'; | |
42245 | + return this.resource(endPoint).get(); | |
42246 | + }; | |
42231 | 42247 | return APIEndPoint; |
42232 | 42248 | })(); |
42233 | 42249 | services.APIEndPoint = APIEndPoint; |
@@ -42625,6 +42641,10 @@ | ||
42625 | 42641 | } |
42626 | 42642 | return this.resource(endPoint).get(); |
42627 | 42643 | }; |
42644 | + APIEndPoint.prototype.getDirectories = function () { | |
42645 | + var endPoint = '/spi/v1/workspace/'; | |
42646 | + return this.resource(endPoint).get(); | |
42647 | + }; | |
42628 | 42648 | return APIEndPoint; |
42629 | 42649 | })(); |
42630 | 42650 | services.APIEndPoint = APIEndPoint; |
@@ -43022,6 +43042,10 @@ | ||
43022 | 43042 | } |
43023 | 43043 | return this.resource(endPoint).get(); |
43024 | 43044 | }; |
43045 | + APIEndPoint.prototype.getDirectories = function () { | |
43046 | + var endPoint = '/spi/v1/workspace/'; | |
43047 | + return this.resource(endPoint).get(); | |
43048 | + }; | |
43025 | 43049 | return APIEndPoint; |
43026 | 43050 | })(); |
43027 | 43051 | services.APIEndPoint = APIEndPoint; |
@@ -43419,6 +43443,10 @@ | ||
43419 | 43443 | } |
43420 | 43444 | return this.resource(endPoint).get(); |
43421 | 43445 | }; |
43446 | + APIEndPoint.prototype.getDirectories = function () { | |
43447 | + var endPoint = '/spi/v1/workspace/'; | |
43448 | + return this.resource(endPoint).get(); | |
43449 | + }; | |
43422 | 43450 | return APIEndPoint; |
43423 | 43451 | })(); |
43424 | 43452 | services.APIEndPoint = APIEndPoint; |
@@ -43816,6 +43844,10 @@ | ||
43816 | 43844 | } |
43817 | 43845 | return this.resource(endPoint).get(); |
43818 | 43846 | }; |
43847 | + APIEndPoint.prototype.getDirectories = function () { | |
43848 | + var endPoint = '/spi/v1/workspace/'; | |
43849 | + return this.resource(endPoint).get(); | |
43850 | + }; | |
43819 | 43851 | return APIEndPoint; |
43820 | 43852 | })(); |
43821 | 43853 | services.APIEndPoint = APIEndPoint; |
@@ -44213,6 +44245,10 @@ | ||
44213 | 44245 | } |
44214 | 44246 | return this.resource(endPoint).get(); |
44215 | 44247 | }; |
44248 | + APIEndPoint.prototype.getDirectories = function () { | |
44249 | + var endPoint = '/spi/v1/workspace/'; | |
44250 | + return this.resource(endPoint).get(); | |
44251 | + }; | |
44216 | 44252 | return APIEndPoint; |
44217 | 44253 | })(); |
44218 | 44254 | services.APIEndPoint = APIEndPoint; |
@@ -44610,6 +44646,10 @@ | ||
44610 | 44646 | } |
44611 | 44647 | return this.resource(endPoint).get(); |
44612 | 44648 | }; |
44649 | + APIEndPoint.prototype.getDirectories = function () { | |
44650 | + var endPoint = '/spi/v1/workspace/'; | |
44651 | + return this.resource(endPoint).get(); | |
44652 | + }; | |
44613 | 44653 | return APIEndPoint; |
44614 | 44654 | })(); |
44615 | 44655 | services.APIEndPoint = APIEndPoint; |
@@ -45007,6 +45047,10 @@ | ||
45007 | 45047 | } |
45008 | 45048 | return this.resource(endPoint).get(); |
45009 | 45049 | }; |
45050 | + APIEndPoint.prototype.getDirectories = function () { | |
45051 | + var endPoint = '/spi/v1/workspace/'; | |
45052 | + return this.resource(endPoint).get(); | |
45053 | + }; | |
45010 | 45054 | return APIEndPoint; |
45011 | 45055 | })(); |
45012 | 45056 | services.APIEndPoint = APIEndPoint; |
@@ -0,0 +1,17 @@ | ||
1 | +'use strict'; | |
2 | + | |
3 | +var express = require('express'); | |
4 | +var router = express.Router() | |
5 | +var path = require('path') | |
6 | +var formidable = require('formidable') | |
7 | +var db = require(__dirname + '/../../../../../../server/class/DB').instance; | |
8 | + | |
9 | +router.get('/', function(req, res) { | |
10 | + console.log('hogehoge'); | |
11 | + db.getDirectories() | |
12 | + .then(function(dirs) { | |
13 | + res.send(dirs); | |
14 | + }) | |
15 | +}); | |
16 | + | |
17 | +module.exports = router; |
@@ -19,7 +19,8 @@ module.exports = function(app) { | ||
19 | 19 | */ |
20 | 20 | app.use('/api/v1/fileUpload', require(__dirname + '/api/v1/fileUpload')); |
21 | 21 | app.use('/api/v1/execution', require(__dirname + '/api/v1/execution')); |
22 | - app.use('/api/v1/workspace', require(__dirname + '/api/v1/workspace')); | |
22 | + app.use('/api/v1/workspace/', require(__dirname + '/api/v1/workspace')); | |
23 | + app.use('/api/v1/all/workspace/directory', require(__dirname + '/api/v1/all/workspace/directory')); | |
23 | 24 | |
24 | 25 | app.route('/*') |
25 | 26 | .get(function(req, res) { |