• R/O
  • HTTP
  • SSH
  • HTTPS

zephyr: Commit

This repository is for zephyr, which is implemented for a GUI of Eos.


Commit MetaInfo

Revisiónb26402fee76200161bcf155f2abc6fbf0f7ab9cf (tree)
Tiempo2016-02-03 13:59:38
Autorhimetani_cafe <fumifumi@yasu...>
Commiterhimetani_cafe

Log Message

[Develop and Manual test] /api/v1/all/workspace/directory

Cambiar Resumen

Diferencia incremental

--- a/front-end/app/scripts/services/APIEndPoint.ts
+++ b/front-end/app/scripts/services/APIEndPoint.ts
@@ -32,5 +32,11 @@ namespace app.services {
3232 }
3333 return <declares.IResponseFileInfo>this.resource(endPoint).get();
3434 }
35+
36+ public getDirectories(): ng.resource.IResource<declares.IResponse> {
37+ var endPoint = '/spi/v1/workspace/';
38+
39+ return this.resource(endPoint).get();
40+ }
3541 }
3642 }
--- a/front-end/dist/bundle.js
+++ b/front-end/dist/bundle.js
@@ -41037,6 +41037,10 @@
4103741037 }
4103841038 return this.resource(endPoint).get();
4103941039 };
41040+ APIEndPoint.prototype.getDirectories = function () {
41041+ var endPoint = '/spi/v1/workspace/';
41042+ return this.resource(endPoint).get();
41043+ };
4104041044 return APIEndPoint;
4104141045 })();
4104241046 services.APIEndPoint = APIEndPoint;
@@ -41434,6 +41438,10 @@
4143441438 }
4143541439 return this.resource(endPoint).get();
4143641440 };
41441+ APIEndPoint.prototype.getDirectories = function () {
41442+ var endPoint = '/spi/v1/workspace/';
41443+ return this.resource(endPoint).get();
41444+ };
4143741445 return APIEndPoint;
4143841446 })();
4143941447 services.APIEndPoint = APIEndPoint;
@@ -41831,6 +41839,10 @@
4183141839 }
4183241840 return this.resource(endPoint).get();
4183341841 };
41842+ APIEndPoint.prototype.getDirectories = function () {
41843+ var endPoint = '/spi/v1/workspace/';
41844+ return this.resource(endPoint).get();
41845+ };
4183441846 return APIEndPoint;
4183541847 })();
4183641848 services.APIEndPoint = APIEndPoint;
@@ -42228,6 +42240,10 @@
4222842240 }
4222942241 return this.resource(endPoint).get();
4223042242 };
42243+ APIEndPoint.prototype.getDirectories = function () {
42244+ var endPoint = '/spi/v1/workspace/';
42245+ return this.resource(endPoint).get();
42246+ };
4223142247 return APIEndPoint;
4223242248 })();
4223342249 services.APIEndPoint = APIEndPoint;
@@ -42625,6 +42641,10 @@
4262542641 }
4262642642 return this.resource(endPoint).get();
4262742643 };
42644+ APIEndPoint.prototype.getDirectories = function () {
42645+ var endPoint = '/spi/v1/workspace/';
42646+ return this.resource(endPoint).get();
42647+ };
4262842648 return APIEndPoint;
4262942649 })();
4263042650 services.APIEndPoint = APIEndPoint;
@@ -43022,6 +43042,10 @@
4302243042 }
4302343043 return this.resource(endPoint).get();
4302443044 };
43045+ APIEndPoint.prototype.getDirectories = function () {
43046+ var endPoint = '/spi/v1/workspace/';
43047+ return this.resource(endPoint).get();
43048+ };
4302543049 return APIEndPoint;
4302643050 })();
4302743051 services.APIEndPoint = APIEndPoint;
@@ -43419,6 +43443,10 @@
4341943443 }
4342043444 return this.resource(endPoint).get();
4342143445 };
43446+ APIEndPoint.prototype.getDirectories = function () {
43447+ var endPoint = '/spi/v1/workspace/';
43448+ return this.resource(endPoint).get();
43449+ };
4342243450 return APIEndPoint;
4342343451 })();
4342443452 services.APIEndPoint = APIEndPoint;
@@ -43816,6 +43844,10 @@
4381643844 }
4381743845 return this.resource(endPoint).get();
4381843846 };
43847+ APIEndPoint.prototype.getDirectories = function () {
43848+ var endPoint = '/spi/v1/workspace/';
43849+ return this.resource(endPoint).get();
43850+ };
4381943851 return APIEndPoint;
4382043852 })();
4382143853 services.APIEndPoint = APIEndPoint;
@@ -44213,6 +44245,10 @@
4421344245 }
4421444246 return this.resource(endPoint).get();
4421544247 };
44248+ APIEndPoint.prototype.getDirectories = function () {
44249+ var endPoint = '/spi/v1/workspace/';
44250+ return this.resource(endPoint).get();
44251+ };
4421644252 return APIEndPoint;
4421744253 })();
4421844254 services.APIEndPoint = APIEndPoint;
@@ -44610,6 +44646,10 @@
4461044646 }
4461144647 return this.resource(endPoint).get();
4461244648 };
44649+ APIEndPoint.prototype.getDirectories = function () {
44650+ var endPoint = '/spi/v1/workspace/';
44651+ return this.resource(endPoint).get();
44652+ };
4461344653 return APIEndPoint;
4461444654 })();
4461544655 services.APIEndPoint = APIEndPoint;
@@ -45007,6 +45047,10 @@
4500745047 }
4500845048 return this.resource(endPoint).get();
4500945049 };
45050+ APIEndPoint.prototype.getDirectories = function () {
45051+ var endPoint = '/spi/v1/workspace/';
45052+ return this.resource(endPoint).get();
45053+ };
4501045054 return APIEndPoint;
4501145055 })();
4501245056 services.APIEndPoint = APIEndPoint;
--- /dev/null
+++ b/server/api/v1/all/workspace/directory/index.js
@@ -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;
--- a/server/routes.js
+++ b/server/routes.js
@@ -19,7 +19,8 @@ module.exports = function(app) {
1919 */
2020 app.use('/api/v1/fileUpload', require(__dirname + '/api/v1/fileUpload'));
2121 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'));
2324
2425 app.route('/*')
2526 .get(function(req, res) {
Show on old repository browser