amuse.git

commit 9a99d498429c4a00160f48dba4088f693f199ede

Author: Adam <git@apiote.tk>

show 404 in profile

 router.go | 7 ++++---


diff --git a/router.go b/router.go
index 6c68a99f2635d2b11fde5c0cc3289e980c17d26e..e38717d22a5973d56ceb486c5cc66067ec197f2b 100644
--- a/router.go
+++ b/router.go
@@ -329,8 +329,9 @@ 		}
 	}
 }
 
-func user(w http.ResponseWriter, r *http.Request, username string, auth accounts.Authentication) {
-	fmt.Fprint(w, "USER")
+func user(w http.ResponseWriter, r *http.Request, username string, auth accounts.Authentication, acceptLanguages, mimetype string) {
+	// todo user profile
+	renderError(404, w, nil, acceptLanguages, mimetype)
 }
 
 func userAvatar(w http.ResponseWriter, r *http.Request, username string, auth accounts.Authentication, acceptLanguages string, mimetype string) {
@@ -476,7 +477,7 @@ 	}
 
 	username := path[1]
 	if len(path) == 2 {
-		user(w, r, username, auth)
+		user(w, r, username, auth, acceptLanguages, mimetype)
 	} else {
 		switch path[2] {
 		case "avatar":