Skip to content

Commit

Permalink
Provide admin page by "/"
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jul 27, 2014
1 parent 50ef3a5 commit 84cf0a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/droonga-http-server
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ application.use(session({
store: sessionStore
}));
application.use(responseTime());
application.use('/', express.static(path.normalize(__dirname + '/../public/groonga-admin')));
if (options.cacheSize > 0) {
var cacheMiddlewareRules = [
{ regex: /^\// }
Expand Down Expand Up @@ -171,8 +172,6 @@ application.droonga({
plugins: options.plugins
});

application.use('/groonga-admin', express.static(path.normalize(__dirname + '/../public/groonga-admin')));

server.listen(options.port);

function shutdown() {
Expand Down

0 comments on commit 84cf0a2

Please sign in to comment.