diff --git a/javascript/total4/app.js b/javascript/total4/app.js new file mode 100644 index 00000000000..35c2f44fe99 --- /dev/null +++ b/javascript/total4/app.js @@ -0,0 +1,15 @@ +require('total4') + +ROUTE('GET /', function() { + this.plain('Hello world!'); +}); + +ROUTE('GET /user/{id}/', function(id) { + this.plain(id); +}); + +ROUTE('POST /user/', function() { + this.plain(''); +}); + +F.http('release', { port: 3000, watcher: false }); \ No newline at end of file diff --git a/javascript/total4/config.yaml b/javascript/total4/config.yaml new file mode 100644 index 00000000000..fb9bf034acd --- /dev/null +++ b/javascript/total4/config.yaml @@ -0,0 +1,3 @@ +framework: + website: totaljs.com + version: 0.0.97 diff --git a/javascript/total4/package.json b/javascript/total4/package.json new file mode 100644 index 00000000000..77b6ee76a90 --- /dev/null +++ b/javascript/total4/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "total5": "~0.0.97" + } +} diff --git a/javascript/total5/app.js b/javascript/total5/app.js new file mode 100644 index 00000000000..205c674a0cc --- /dev/null +++ b/javascript/total5/app.js @@ -0,0 +1,15 @@ +require('total5') + +ROUTE('GET /', function($) { + $.text('Hello world!'); +}); + +ROUTE('GET /user/{id}/', function($) { + $.text($.params.id); +}); + +ROUTE('POST /user/', function($) { + $.text(''); +}); + +Total.run({ port: 3000, release: true, watcher: false }); \ No newline at end of file diff --git a/javascript/total5/config.yaml b/javascript/total5/config.yaml new file mode 100644 index 00000000000..5d1f5a3978e --- /dev/null +++ b/javascript/total5/config.yaml @@ -0,0 +1,3 @@ +framework: + website: totaljs.com + version: 0.0.6 diff --git a/javascript/total5/package.json b/javascript/total5/package.json new file mode 100644 index 00000000000..7ad8c24a3bc --- /dev/null +++ b/javascript/total5/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "total5": "~0.0.6" + } +}