beego:rever docs
This commit is contained in:
		
							parent
							
								
									b943b74fc5
								
							
						
					
					
						commit
						720a77c1f9
					
				
							
								
								
									
										4
									
								
								beego.go
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								beego.go
									
									
									
									
									
								
							| @ -376,10 +376,6 @@ func initBeforeHttpRun() { | |||||||
| 		} | 		} | ||||||
| 	} | 	} | ||||||
| 
 | 
 | ||||||
| 	if EnableDocs { |  | ||||||
| 		GlobalDocApi = make(map[string]interface{}) |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	middleware.VERSION = VERSION | 	middleware.VERSION = VERSION | ||||||
| 	middleware.AppName = AppName | 	middleware.AppName = AppName | ||||||
| 	middleware.RegisterErrorHandler() | 	middleware.RegisterErrorHandler() | ||||||
|  | |||||||
							
								
								
									
										6
									
								
								docs.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								docs.go
									
									
									
									
									
								
							| @ -8,6 +8,12 @@ import ( | |||||||
| 
 | 
 | ||||||
| var GlobalDocApi map[string]interface{} | var GlobalDocApi map[string]interface{} | ||||||
| 
 | 
 | ||||||
|  | func init() { | ||||||
|  | 	if EnableDocs { | ||||||
|  | 		GlobalDocApi = make(map[string]interface{}) | ||||||
|  | 	} | ||||||
|  | } | ||||||
|  | 
 | ||||||
| func serverDocs(ctx *context.Context) { | func serverDocs(ctx *context.Context) { | ||||||
| 	var obj interface{} | 	var obj interface{} | ||||||
| 	if splat := ctx.Input.Param(":splat"); splat == "" { | 	if splat := ctx.Input.Param(":splat"); splat == "" { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user