Skip to content

Commit

Permalink
dont require authentication for template data
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloose committed Nov 28, 2024
1 parent cb0ad66 commit c9d1993
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions stiller-backend/internal/handlers/get_template.info.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package handlers

import (
"net/http"
"stiller/pkg/jwt"
"stiller/pkg/loggers"
"stiller/pkg/netwrappers"
"stiller/pkg/templates"
Expand All @@ -16,12 +15,6 @@ func GetTemplateInfo(w http.ResponseWriter, r *http.Request, params httprouter.P
return
}

user_token := r.Header.Get("token")
_, token_decode_err := jwt.Decode(user_token)
if loggers.RequestLog(token_decode_err, "", http.StatusUnauthorized, &w) {
return
}

template_id_str := params.ByName("template_id")
template_id, template_id_err := strconv.Atoi(template_id_str)
if loggers.RequestLog(template_id_err, "", http.StatusBadRequest, &w) {
Expand Down

0 comments on commit c9d1993

Please sign in to comment.