Skip to content

Commit dcbb56b

Browse files
author
Nick Jonas
committed
public allowed weather
1 parent 15a3893 commit dcbb56b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

coder-base/localserver.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var apphandler = function( req, res, appdir ) {
6565
util.log( "GET: " + apppath + " " + appname );
6666

6767
//Redirect to sign-in for unauthenticated users
68-
publicAllowed = ["auth"]; //apps that are exempt from any login (should only be auth)
68+
publicAllowed = ["auth", "weather"]; //apps that are exempt from any login (should only be auth)
6969
auth = require(appdir + "auth" + "/app");
7070
user = auth.isAuthenticated(req, res);
7171
if ( !user && publicAllowed.indexOf( appname ) < 0) {
@@ -164,6 +164,10 @@ localapp.get( '/', function( req, res ) {
164164
util.log( 'GET: /' );
165165
res.redirect( '/app/auth' );
166166
});
167+
localapp.get( '/weather', function(req, res){
168+
169+
});
170+
167171
localapp.all( /^\/app\/(\w+)\/(.*)$/, function( req, res ) { apphandler( req, res, __dirname + '/apps/'); } );
168172
localapp.all( /^\/app\/(\w+)\/$/, function( req, res ) { apphandler( req, res, __dirname + '/apps/'); } );
169173
localapp.all( /^\/app\/(\w+)$/, function( req, res ) { apphandler( req, res, __dirname + '/apps/'); } );

0 commit comments

Comments
 (0)