|
|
@ -688,19 +688,15 @@ void WebApplication::parsePath() |
|
|
|
|
|
|
|
|
|
|
|
// check action for requested path
|
|
|
|
// check action for requested path
|
|
|
|
QStringList pathItems = request().path.split('/', QString::SkipEmptyParts); |
|
|
|
QStringList pathItems = request().path.split('/', QString::SkipEmptyParts); |
|
|
|
if (!pathItems.empty()) { |
|
|
|
if (!pathItems.empty() && actions_.contains(pathItems.front())) { |
|
|
|
if (actions_.contains(pathItems.front())) { |
|
|
|
|
|
|
|
scope_ = pathItems.front(); |
|
|
|
scope_ = pathItems.front(); |
|
|
|
pathItems.pop_front(); |
|
|
|
pathItems.pop_front(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!pathItems.empty()) { |
|
|
|
if (!pathItems.empty() && actions_[scope_].contains(pathItems.front())) { |
|
|
|
if (actions_[scope_].contains(pathItems.front())) { |
|
|
|
|
|
|
|
action_ = pathItems.front(); |
|
|
|
action_ = pathItems.front(); |
|
|
|
pathItems.pop_front(); |
|
|
|
pathItems.pop_front(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
args_ = pathItems; |
|
|
|
args_ = pathItems; |
|
|
|
} |
|
|
|
} |
|
|
|