mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	Rename module: middleware -> context
This commit is contained in:
		
					parent
					
						
							
								cb1eadc276
							
						
					
				
			
			
				commit
				
					
						514382e2eb
					
				
			
		
					 54 changed files with 666 additions and 669 deletions
				
			
		|  | @ -7,13 +7,13 @@ package admin | |||
| import ( | ||||
| 	api "github.com/gogits/go-gogs-client" | ||||
| 
 | ||||
| 	"github.com/gogits/gogs/modules/middleware" | ||||
| 	"github.com/gogits/gogs/modules/context" | ||||
| 	"github.com/gogits/gogs/routers/api/v1/repo" | ||||
| 	"github.com/gogits/gogs/routers/api/v1/user" | ||||
| ) | ||||
| 
 | ||||
| // https://github.com/gogits/go-gogs-client/wiki/Administration-Repositories#create-a-new-repository | ||||
| func CreateRepo(ctx *middleware.Context, form api.CreateRepoOption) { | ||||
| func CreateRepo(ctx *context.Context, form api.CreateRepoOption) { | ||||
| 	owner := user.GetUserByParams(ctx) | ||||
| 	if ctx.Written() { | ||||
| 		return | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue