|
@@ -107,6 +107,10 @@ func (h *AuthHandler) Refresh(w http.ResponseWriter, r *http.Request) {
|
|
|
writeJSON(w, http.StatusOK, result)
|
|
writeJSON(w, http.StatusOK, result)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+func (h *AuthHandler) Logout(w http.ResponseWriter, r *http.Request) {
|
|
|
|
|
+ w.WriteHeader(http.StatusNoContent)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
func (h *AuthHandler) Me(w http.ResponseWriter, r *http.Request) {
|
|
func (h *AuthHandler) Me(w http.ResponseWriter, r *http.Request) {
|
|
|
userID := middleware.GetUserID(r.Context())
|
|
userID := middleware.GetUserID(r.Context())
|
|
|
if userID == "" {
|
|
if userID == "" {
|