diff --git a/src/posts/middleware-auth.md b/src/posts/middleware-auth.md index 70bcc76..a5681a4 100644 --- a/src/posts/middleware-auth.md +++ b/src/posts/middleware-auth.md @@ -84,7 +84,7 @@ If you're too lazy to write some basic if checks, maybe that's a you problem. Bu ```ts app.get( "/", - adminOnlyRoute((req, res) => { + protectedRoute((req, res) => { // ... }) );