mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Fix import path
This commit is contained in:
		@@ -4,12 +4,13 @@ import (
 | 
			
		||||
	"net/http"
 | 
			
		||||
 | 
			
		||||
	"github.com/codegangsta/martini"
 | 
			
		||||
	"github.com/martini-contrib/render"
 | 
			
		||||
	"github.com/martini-contrib/sessions"
 | 
			
		||||
 | 
			
		||||
	"github.com/gogits/gogs/models"
 | 
			
		||||
	"github.com/gogits/gogs/modules/auth"
 | 
			
		||||
	"github.com/gogits/gogs/modules/base"
 | 
			
		||||
	"github.com/martini-contrib/render"
 | 
			
		||||
	"github.com/martini-contrib/sessions"
 | 
			
		||||
	"github.com/qiniu/log"
 | 
			
		||||
	"github.com/gogits/gogs/modules/log"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func Single(params martini.Params, req *http.Request, r render.Render, data base.TmplData, session sessions.Session) {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								web.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								web.go
									
									
									
									
									
								
							@@ -76,7 +76,7 @@ func runWeb(*cli.Context) {
 | 
			
		||||
	m.Any("/repo/list", auth.SignInRequire(false), repo.List)
 | 
			
		||||
	m.Get("/:username/:reponame", auth.SignInRequire(false), repo.Single)
 | 
			
		||||
 | 
			
		||||
	m.Get("/:username/:reponame", repo.Repo)
 | 
			
		||||
	//m.Get("/:username/:reponame", repo.Repo)
 | 
			
		||||
 | 
			
		||||
	listenAddr := fmt.Sprintf("%s:%s",
 | 
			
		||||
		base.Cfg.MustValue("server", "HTTP_ADDR"),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user