2016-06-16 08:10:35 +02:00
|
|
|
package controllers
|
2016-04-11 10:07:16 +02:00
|
|
|
|
2016-05-16 08:21:59 +02:00
|
|
|
import "os"
|
|
|
|
|
2016-06-16 08:10:35 +02:00
|
|
|
// 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() {
|
2016-05-16 08:21:59 +02:00
|
|
|
rc.Data["HarborRegUrl"] = os.Getenv("HARBOR_REG_URL")
|
2016-04-11 10:07:16 +02:00
|
|
|
rc.Forward("Repository", "repository.htm")
|
|
|
|
}
|