forked from jriou/coller
refactor: Rename protected to encrypted
Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
8e1dd686d3
commit
75bdab55df
3 changed files with 8 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue