User
This commit is contained in:
@@ -36,6 +36,12 @@ func idFromUsername(username string) int64 {
|
||||
return id
|
||||
}
|
||||
|
||||
// serveUserPage liefert die statische Profilseite; das Frontend lädt die Daten
|
||||
// dann über /u/{username}/info und /u/{username}/feed/{page}.
|
||||
func serveUserPage(w http.ResponseWriter, r *http.Request) {
|
||||
http.ServeFile(w, r, "web/user.html")
|
||||
}
|
||||
|
||||
func handleUserPage(w http.ResponseWriter, r *http.Request) {
|
||||
username := chi.URLParam(r, "username")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user