Skip to content

Commit 5dd4218

Browse files
committed
Cleanup to make things more focused
1 parent 870fc77 commit 5dd4218

File tree

4 files changed

+2
-15
lines changed

4 files changed

+2
-15
lines changed

app.js

-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
var express = require('express')
77
, routes = require('./routes')
8-
, user = require('./routes/user')
98
, google = require('./routes/google')
109
, http = require('http')
1110
, path = require('path');
@@ -33,7 +32,6 @@ app.configure('development', function(){
3332
});
3433

3534
app.get('/', routes.index);
36-
app.get('/users', user.list);
3735
app.post('/google/auth', google.auth);
3836

3937
google.CLIENT_ID = app.get('clientId');

routes/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ exports.index = function(req, res){
1515
var stateToken = crypto.randomBytes(48).toString('hex');
1616
var now = (new Date()).getTime();
1717
var data = {
18-
'title': 'Express',
1918
'clientId': google.CLIENT_ID,
2019
'scope': google.SCOPE,
2120
'state': stateToken,

routes/user.js

-8
This file was deleted.

views/index.ejs

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title><%= title %></title>
4+
<title>Google+ Sign-In Example</title>
55
<link rel='stylesheet' href='/stylesheets/style.css'/>
66
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
77
<script>
@@ -10,9 +10,7 @@
1010
<script src="/javascripts/client.js"></script>
1111
</head>
1212
<body>
13-
<h1><%= title %></h1>
14-
15-
<p>Welcome to <%= title %></p>
13+
<h1>Google+ Sign-In Example</h1>
1614

1715
<!--
1816
Step 4: Add the sign-in button to your page

0 commit comments

Comments
 (0)