func (c *Pattern) Router() *Pattern {
	if !c.toRouter {
		doHandle(c)
		c.toRouter = true
	}
	return c
}
Router register to httpRouter
package bast
type Pattern struct {
	Method        string
	Pattern       string
	Fn            func(ctx *Context)
	Parameter     interface{}
	Name          string
	Service       string
	authorization bool
	publish       bool
	publishFinish bool
	toRouter      bool
}
func (c *Pattern) Auth() *Pattern {
	c.authorization = true
	return c
}
func (c *Pattern) Unauth() *Pattern {
	c.authorization = false
	return c
}
func (c *Pattern) Registry(service string) *Pattern {
	c.publish = true
	c.Service = service
	return c
}
func (c *Pattern) Unregistry() *Pattern {
	c.publish = false
	c.Service = ""
	return c
}
func (c *Pattern) Param(Parameter interface{}) *Pattern {
	c.Parameter = Parameter
	return c
}
func (c *Pattern) Nickname(name string) *Pattern {
	c.Name = name
	return c
}