Skip to content

Commit

Permalink
Version 0.3.14
Browse files Browse the repository at this point in the history
* 配置文件支持Middleware,支持App\Group\Router三个级别
* 更新 example/config 目录
* 2017-05-17 15:00
  • Loading branch information
devfeel committed May 17, 2017
1 parent c0915fb commit 1400427
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
15 changes: 8 additions & 7 deletions tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,14 @@ func (n *Node) addRoute(path string, handle RouterHandle, m ...Middleware) (outn
// Split edge
if i < len(n.path) {
child := Node{
path: n.path[i:],
wildChild: n.wildChild,
nType: static,
indices: n.indices,
children: n.children,
handle: n.handle,
priority: n.priority - 1,
path: n.path[i:],
wildChild: n.wildChild,
nType: static,
indices: n.indices,
children: n.children,
handle: n.handle,
priority: n.priority - 1,
middlewares: n.middlewares,
}

// Update maxParams (max of all children)
Expand Down
11 changes: 4 additions & 7 deletions version.MD
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
##dotweb版本记录:

#### Version 0.3.13
* HttpContext增加ViewC、WriteStringC、WriteBlobC、WriteJsonC、WriteJsonBlobC方法,以支持传入指定HttpCode
* 调整Redirect(code int, targetUrl string) 为 Redirect(code int, targetUrl string) error,增加error返回值
* DotWeb增加SetLogger方法,支持接入第三方Logger,需实现logger.AppLog接口
* DotWeb增加SetConfig方法,支持配置与启动分离
* 新增 example/logger 目录
* 2017-05-16 09:00
#### Version 0.3.14
* 配置文件支持Middleware,支持App\Group\Router三个级别
* 更新 example/config 目录
* 2017-05-17 15:00

#### Version 0.3.12
* ExceptionHandle定义由ExceptionHandle func(*HttpContext, interface{})调整为ExceptionHandle func(*HttpContext, error)
Expand Down

0 comments on commit 1400427

Please sign in to comment.