harbor/controllers/ng/repository.go

15 lines
309 B
Go
Raw Normal View History

2016-04-11 10:07:16 +02:00
package ng
import "os"
2016-05-23 09:43:15 +02:00
// RepositoryController handles request to /ng/repository
2016-04-11 10:07:16 +02:00
type RepositoryController struct {
BaseController
}
2016-05-23 09:43:15 +02:00
// Get renders repository page
2016-04-11 10:07:16 +02:00
func (rc *RepositoryController) Get() {
rc.Data["HarborRegUrl"] = os.Getenv("HARBOR_REG_URL")
2016-04-11 10:07:16 +02:00
rc.Forward("Repository", "repository.htm")
}