From 602dc2069daf77436661d160aef0b90217746514 Mon Sep 17 00:00:00 2001 From: kunw Date: Wed, 22 Jun 2016 16:36:48 +0800 Subject: [PATCH] add comments on addnew controller code. --- controllers/addnew.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controllers/addnew.go b/controllers/addnew.go index b7894050a..2bf6f1d57 100644 --- a/controllers/addnew.go +++ b/controllers/addnew.go @@ -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