More Stuff

This commit is contained in:
Caleb Gardner
2024-06-17 18:01:37 -05:00
parent fdd8d49055
commit fa9330a959
4 changed files with 89 additions and 3 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ type Author struct {
PicURL string `json:"picurl" bson:"picurl"`
}
func (b *BlogApp) AboutCaleb() (*Author, error) {
func (b *BlogApp) AboutMe() (*Author, error) {
res := b.authCol.FindOne(context.Background(), bson.M{"_id": "caleb_gardner"})
if res.Err() != nil {
log.Println("error getting about me:", res.Err())
@@ -35,7 +35,7 @@ func (b *BlogApp) AboutCaleb() (*Author, error) {
}
func (b *BlogApp) GetAuthorInfo(w http.ResponseWriter, r *http.Request) {
//TODO
}
func (b *BlogApp) SetAuthorInfo(w http.ResponseWriter, r *http.Request) {