support older servers
This commit is contained in:
parent
5491b8d91d
commit
5c28bff26b
|
@ -199,7 +199,7 @@ common.api.token = function (state, handlers) {
|
|||
});
|
||||
}
|
||||
|
||||
if (dir) {
|
||||
if (dir && dir.api_host) {
|
||||
handlers.directory(dir, afterDir);
|
||||
} else {
|
||||
// backwards compat
|
||||
|
|
Loading…
Reference in New Issue