1
0
Fork 0
forked from jriou/coller

refactor: Rename protected to encrypted

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2025-09-24 09:50:13 +02:00
commit 75bdab55df
Signed by: jriou
GPG key ID: 9A099EDA51316854
3 changed files with 8 additions and 8 deletions

View file

@ -89,12 +89,12 @@ func (h *GetNoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
}
type GetProtectedNoteHandler struct {
type GetEncryptedNoteHandler struct {
logger *slog.Logger
db *Database
}
func (h *GetProtectedNoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
func (h *GetEncryptedNoteHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "text/plain; charset=utf-8")
vars := mux.Vars(r)