Skip to content

Instantly share code, notes, and snippets.

var express = require('express');
var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
res.render('index', { title: 'Express' });
});
module.exports = router;
{
"name": "sampleapp",
"version": "0.0.0",
"private": true,
"scripts": {
"start": "npm run build && node dist/bin/www",
"build": "rimraf dist/ && babel ./ --out-dir dist/ --ignore ./node_modules,./.babelrc,./package.json,./npm-debug.log --copy-files"
},
"dependencies": {
"cookie-parser": "~1.4.4",
{
"env": {
"es6": true,
"node": true
},
"extends": [
"airbnb-base"
],
"globals": {
"Atomics": "readonly",
require 'httparty'
class ApplicationController < ActionController::Base
def authenticated?
puts session[:user]
if session.nil? || session[:user].nil?
if params[:token].nil?
return redirect_to "http://localhost:3000?redirect_url=#{request.original_url}"
else
verify_url = "http://sso:3000/sso/verify_token?token=#{params[:token]}"
puts 'redirect_url', verify_url
{
"data" : {},
"statusCode": 200,
"statusMessage": "Post created successfully",
"update": false,
"disabled": false,
"error": {}
}
body {
margin: 0px;
}
.parent {
display: flex;
background-color: yellow;
width: 100px;
}
body {
margin: 0px;
}
.parent {
display: flex;
background-color: yellow;
height: 300px;
flex-direction: column;
}
body {
margin: 0px;
}
.parent {
display: flex;
background-color: yellow;
width: 100px;
}
body {
margin: 0px;
}
.parent {
display: flex;
background-color: yellow;
width: 100px;
}
body {
margin: 0px;
}
.parent {
display: flex;
background-color: yellow;
}
.one {