package api import ( "net/http" "atlas9.dev/c/core/iam" "atlas9.dev/c/demo/store" ) func ProfilesApi(mux *http.ServeMux, impl *ProfilesImpl) { mux.HandleFunc("POST /Profiles.Get", impl.Get) mux.HandleFunc("POST /Profiles.Save", impl.Save) } type Profiles_GetRes struct { User *iam.User Profile *store.Profile } type Profiles_SaveReq struct { Name string Bio string Location string Website string PictureURL string } func (r *Profiles_SaveReq) Prepare() error { return nil }