This file contains hidden or 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
option_settings: | |
aws:elasticbeanstalk:container:nodejs: | |
NodeCommand: "npm start --prod" |
This file contains hidden or 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
let firebaseAuth = (req, res, next) => { | |
let authHeader = req.get("Authorization"), bearer = "Bearer "; | |
if (typeof authHeader === "undefined" || !authHeader.startsWith(bearer)) { | |
return res.sendStatus(403); | |
} | |
let token = authHeader.substr(bearer.length); | |
firebaseAdmin.auth().verifyIdToken(token).then((decodedToken) => { |
This file contains hidden or 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
/** | |
* Module dependencies | |
*/ | |
var actionUtil = require('sails/lib/hooks/blueprints/actionUtil'); | |
/** | |
* Create Record | |
* | |
* post /:modelIdentity | |
* |
This file contains hidden or 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
<div class="form-group has-feedback"> | |
<input type="text" value="" class="form-control"> | |
<i class="form-control-feedback glyphicon glyphicon-user"></i> | |
</div> | |
<div class="form-group has-feedback has-success"> | |
<input type="text" value="" class="form-control"> | |
<i class="form-control-feedback fa fa-user"></i> | |
</div> | |
<div class="form-group has-feedback has-error"> | |
<input type="text" value="" class="form-control"> |