Skip to content

Commit 1ef71b3

Browse files
author
cristopher1
committed
fix(generators/app): se reemplazan los jsdoc de koa por los de express
1 parent 832960c commit 1ef71b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

generators/app/templates/api/src/routes/authentication/authenticationRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import config from '../../config/jwt.js'
44

55
const { JWTSecret, JWTAlgorithm } = config
66

7-
/** @type {import('koa').Middleware} */
7+
/** @type {import('express').RequestHandler} */
88
const isAuthenticated = async (req, res, next) => {
99
const { token } = req
1010
if (!token) {

generators/app/templates/api/src/routes/authentication/tokenRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const getUserInfo = async (email, password) => {
1313
return userInfo
1414
}
1515

16-
/** @type {import('koa').Middleware} */
16+
/** @type {import('express').RequestHandler} */
1717
const obtainToken = async (req, res) => {
1818
const { email, password } = req.body
1919
const userInfo = await getUserInfo(email, password)

0 commit comments

Comments
 (0)