[Groonga-commit] groonga/express-kotoumi [master] Apply prefix for static files too

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed Jan 23 12:15:35 JST 2013


YUKI Hiroshi	2013-01-23 12:15:35 +0900 (Wed, 23 Jan 2013)

  New Revision: 0cb54b3177b5356cfd2c6e2b26f3a66120f67be5
  https://github.com/groonga/express-kotoumi/commit/0cb54b3177b5356cfd2c6e2b26f3a66120f67be5

  Log:
    Apply prefix for static files too

  Modified files:
    lib/dashboard-adaptor.js

  Modified: lib/dashboard-adaptor.js (+1 -1)
===================================================================
--- lib/dashboard-adaptor.js    2013-01-23 12:11:57 +0900 (96e6e9c)
+++ lib/dashboard-adaptor.js    2013-01-23 12:15:35 +0900 (f5472ee)
@@ -12,7 +12,7 @@ exports.registerHandlers = function(application, params) {
   application.use(express.favicon());
   application.use(express.logger('dev'));
   application.use(express.bodyParser());
-  application.use(express.static(path.join(__dirname, '..', 'public')));
+  application.use(prefix, express.static(path.join(__dirname, '..', 'public')));
 
   application.get(prefix + '/dashboard', function(request, response) {
     response.render('index', { title: '', prefix: prefix });
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index