refactoring: making api wrap public

This commit is contained in:
Torkel Ödegaard
2018-07-02 14:13:18 +02:00
parent b8724ae0c4
commit 6286c31d4b
3 changed files with 137 additions and 138 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ type NormalResponse struct {
err error
}
func wrap(action interface{}) macaron.Handler {
func Wrap(action interface{}) macaron.Handler {
return func(c *m.ReqContext) {
var res Response