web:api:prisma-fastify:p2

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

web:api:prisma-fastify:p2 [2026/03/04 02:02] – créée jcheronweb:api:prisma-fastify:p2 [2026/03/04 02:03] (Version actuelle) – [6. Protection de route] jcheron
Ligne 97: Ligne 97:
 ==== 6. Protection de route ==== ==== 6. Protection de route ====
  
-<code ts>+<sxh ts>
 app.get("/posts", { app.get("/posts", {
   preHandler: [app.authenticate]   preHandler: [app.authenticate]
 }, handler) }, handler)
-</code>+</sxh>
  • web/api/prisma-fastify/p2.1772586176.txt.gz
  • Dernière modification : il y a 35 heures
  • de jcheron