harbor/controllers/repository.go

15 lines
315 B
Go
Raw Normal View History

package controllers
2016-04-11 10:07:16 +02:00
import "os"
// RepositoryController handles request to /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")
}