Skip to content

Commit 79ca08a

Browse files
committed
controller scanner: add empty path if not path found when register route
1 parent 904a9ea commit 79ca08a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/act/controller/bytecode/ControllerByteCodeScanner.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,9 @@ public void visit(ClassNode classNode) throws Osgl.Break {
970970

971971
private void registerOnContext(String ctxPath, String action) {
972972
S.Buffer sb = S.newBuffer();
973+
if (paths.isEmpty()) {
974+
paths.add("");
975+
}
973976
for (Router r : routers) {
974977
for (String urlPath : paths) {
975978
if (!urlPath.startsWith("/")) {

0 commit comments

Comments
 (0)