-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WiP] basic handlebars view. nothing to see yet. #77
- Loading branch information
Showing
13 changed files
with
52 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
var ES = require('esta'); | ||
var ES = require('esta'); | ||
|
||
var validateFunc = function (decoded, request, callback) { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ test(file+ "Teardown", function(t) { | |
function create(t, callback) { | ||
var timer = { | ||
"desc" : "My Amazing Timer #"+countdown, | ||
"st" : new Date().toISOString() | ||
"start" : new Date().toISOString() | ||
} | ||
var options = { | ||
method: "POST", | ||
|
@@ -53,9 +53,6 @@ function finish(res, t){ | |
}); | ||
} | ||
|
||
|
||
|
||
// new anonymous person | ||
test(file + "Register new person to create a few timers", function(t) { | ||
var person = { | ||
"email" : "[email protected]", | ||
|
@@ -98,8 +95,7 @@ test(file + "GET /timer/all to list all timers", function(t) { | |
test(file + "GET /timer/all should fail for Timmy no timers", function(t) { | ||
var person = { | ||
"email" : "[email protected]", | ||
"password" : "EveryThingisAwesome", | ||
"firstname": "Timmay!" | ||
"password" : "EveryThingisAwesome" | ||
} | ||
var options = { | ||
method : "POST", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = function(req, reply) { | ||
reply('Welcome to Timer Land!'); // to be improved: http://git.io/pHTs | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
module.exports = [ | ||
{ path: '/', method: 'GET', | ||
config: { | ||
auth: false, | ||
handler: require('./handlers/home') | ||
} | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<h1>Your fortune</h1> | ||
<p>{{fortune}}</p> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
var Joi = require('joi'); | ||
module.exports = { | ||
payload: { | ||
person: Joi.forbidden(), | ||
desc: Joi.string().optional(), | ||
ct: Joi.forbidden(), // don't allow people to set this! | ||
st: Joi.date().iso(), | ||
et: Joi.date().iso().optional(), | ||
aid: Joi.string() | ||
person: Joi.forbidden(), | ||
desc: Joi.string().optional(), | ||
created: Joi.forbidden(), // don't allow people to set this! | ||
start: Joi.date().iso(), | ||
end: Joi.date().iso().optional(), | ||
aid: Joi.string() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters