harbor/controllers/repository.go

15 lines
326 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-06-28 17:42:05 +02:00
rc.Forward("page_title_repository", "repository.htm")
2016-04-11 10:07:16 +02:00
}