chore: archi package du projet

This commit is contained in:
Laurent Drogou
2021-04-13 14:09:58 +02:00
parent 7544643cfb
commit 8cdf1ca15f
9 changed files with 126 additions and 97 deletions

View File

@@ -0,0 +1,26 @@
package routeserv
import (
"fmt"
"log"
"net/http"
"strconv"
"github.com/gorilla/mux"
)
func (s *Server) handleRefreshToken() http.HandlerFunc {
return func(rw http.ResponseWriter, r *http.Request) {
vars, _ := mux.Vars(r)["id"]
jwtID, err := strconv.ParseInt(vars, 10, 64)
if err != nil {
log.Printf("erreur a la récupération id jwt (err=%v)", err)
}
fmt.Printf("le jwtID : %v", jwtID)
// Puis redisrect vers page resultat
//s.response(rw, r, resp, http.StatusOK)
}
}