mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +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"
|
"github.com/vmware/harbor/utils/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// AddNewController handles requests to /add_new
|
||||||
type AddNewController struct {
|
type AddNewController struct {
|
||||||
BaseController
|
BaseController
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Get renders the add new page
|
||||||
func (anc *AddNewController) Get() {
|
func (anc *AddNewController) Get() {
|
||||||
sessionUserID := anc.GetSession("userId")
|
sessionUserID := anc.GetSession("userId")
|
||||||
anc.Data["AddNew"] = false
|
anc.Data["AddNew"] = false
|
||||||
|
Loading…
Reference in New Issue
Block a user