aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/api_account.go
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/api_account.go')
-rw-r--r--app/controllers/api_account.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/api_account.go b/app/controllers/api_account.go
index f22191d..815daf4 100644
--- a/app/controllers/api_account.go
+++ b/app/controllers/api_account.go
@@ -6,6 +6,7 @@ import (
6 "net/http" 6 "net/http"
7 "time" 7 "time"
8 8
9 "code.crute.us/mcrute/cloud-identity-broker/app"
9 "code.crute.us/mcrute/cloud-identity-broker/app/middleware" 10 "code.crute.us/mcrute/cloud-identity-broker/app/middleware"
10 "code.crute.us/mcrute/cloud-identity-broker/app/models" 11 "code.crute.us/mcrute/cloud-identity-broker/app/models"
11 "code.crute.us/mcrute/cloud-identity-broker/cloud/aws" 12 "code.crute.us/mcrute/cloud-identity-broker/cloud/aws"
@@ -191,7 +192,7 @@ func (h *APIAccountHandler) HandlePost(c echo.Context) error {
191 return echo.ErrInternalServerError 192 return echo.ErrInternalServerError
192 } 193 }
193 194
194 c.Response().Header().Add("Location", glecho.URLFor(c, "/api/account", in.ShortName).String()) 195 c.Response().Header().Add("Location", app.AppURL{}.Account(c, "aws", &in.ShortName))
195 196
196 return c.String(http.StatusCreated, "") 197 return c.String(http.StatusCreated, "")
197} 198}