mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-19 00:36:02 +01:00
add comments on addnew controller code.
This commit is contained in:
parent
5fe5b40d29
commit
602dc2069d
@ -7,10 +7,12 @@ import (
|
||||
"github.com/vmware/harbor/utils/log"
|
||||
)
|
||||
|
||||
// AddNewController handles requests to /add_new
|
||||
type AddNewController struct {
|
||||
BaseController
|
||||
}
|
||||
|
||||
// Get renders the add new page
|
||||
func (anc *AddNewController) Get() {
|
||||
sessionUserID := anc.GetSession("userId")
|
||||
anc.Data["AddNew"] = false
|
||||
|
Loading…
Reference in New Issue
Block a user