Skip to content

Commit

Permalink
up fix
Browse files Browse the repository at this point in the history
kiss291323003 committed May 19, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b81bf3b commit e809977
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/DocGenerator/Utility.php
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@


use EasySwoole\Annotation\Annotation;
use EasySwoole\Http\UrlParser;
use EasySwoole\HttpAnnotation\AnnotationTag\CircuitBreaker;
use EasySwoole\HttpAnnotation\AnnotationTag\Context;
use EasySwoole\HttpAnnotation\AnnotationTag\Di;
@@ -186,7 +187,7 @@ public static function mappingRouter(RouteCollector $collector,string $controlle
$method = ['POST','GET','PUT','PATCH','DELETE','HEAD','OPTIONS'];
}
$realPath = '/'.substr($class,$prefixLen + 1).'/'.$methodName;
$collector->addRoute($method,$api->path,$realPath);
$collector->addRoute($method,UrlParser::pathInfo($api->path),$realPath);
}
}
}

0 comments on commit e809977

Please sign in to comment.