File tree 4 files changed +2
-15
lines changed
4 files changed +2
-15
lines changed Original file line number Diff line number Diff line change 5
5
6
6
var express = require ( 'express' )
7
7
, routes = require ( './routes' )
8
- , user = require ( './routes/user' )
9
8
, google = require ( './routes/google' )
10
9
, http = require ( 'http' )
11
10
, path = require ( 'path' ) ;
@@ -33,7 +32,6 @@ app.configure('development', function(){
33
32
} ) ;
34
33
35
34
app . get ( '/' , routes . index ) ;
36
- app . get ( '/users' , user . list ) ;
37
35
app . post ( '/google/auth' , google . auth ) ;
38
36
39
37
google . CLIENT_ID = app . get ( 'clientId' ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ exports.index = function(req, res){
15
15
var stateToken = crypto . randomBytes ( 48 ) . toString ( 'hex' ) ;
16
16
var now = ( new Date ( ) ) . getTime ( ) ;
17
17
var data = {
18
- 'title' : 'Express' ,
19
18
'clientId' : google . CLIENT_ID ,
20
19
'scope' : google . SCOPE ,
21
20
'state' : stateToken ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
<html >
3
3
<head >
4
- <title ><%= title %> </title >
4
+ <title >Google+ Sign-In Example </title >
5
5
<link rel =' stylesheet' href =' /stylesheets/style.css' />
6
6
<script src =" //ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" ></script >
7
7
<script >
10
10
<script src =" /javascripts/client.js" ></script >
11
11
</head >
12
12
<body >
13
- <h1 ><%= title %> </h1 >
14
-
15
- <p >Welcome to <%= title %> </p >
13
+ <h1 >Google+ Sign-In Example</h1 >
16
14
17
15
<!--
18
16
Step 4: Add the sign-in button to your page
You can’t perform that action at this time.
0 commit comments