mirror of
https://github.com/balzack/databag.git
synced 2025-02-12 11:39:17 +00:00
18 lines
307 B
Go
18 lines
307 B
Go
package databag
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
//GetProfile retrieve public profile of account holder
|
|
func GetProfile(w http.ResponseWriter, r *http.Request) {
|
|
|
|
account, code, err := ParamAgentToken(r, true)
|
|
if err != nil {
|
|
ErrResponse(w, code, err)
|
|
return
|
|
}
|
|
|
|
WriteResponse(w, getProfileModel(account))
|
|
}
|