Initial commit

This commit is contained in:
2026-05-12 15:40:22 -06:00
parent 5b279865a1
commit 1eac72b3cd
31 changed files with 1192 additions and 45 deletions
+15
View File
@@ -0,0 +1,15 @@
package main
import (
"net/http"
"logjensticks/internal/auth"
)
func handleMe(w http.ResponseWriter, r *http.Request) {
session := auth.SessionFromContext(r.Context())
writeSuccess(w, http.StatusOK, map[string]string{
"username": session.Username,
"role": session.Role,
})
}