Skip to content

Commit 2af2ccc

Browse files
authored
Fix #51
1 parent d26cc36 commit 2af2ccc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template/services/api.service.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default class ApiService extends Service {
112112
* @param {IncomingMessage} req
113113
* @returns {Promise}
114114
115-
async authenticate = (ctx: Context, route: any, req: IncomingMessage): Promise < any > => {
115+
async authenticate (ctx: Context, route: any, req: IncomingMessage): Promise < any > => {
116116
// Read the token from header
117117
const auth = req.headers.authorization;
118118
@@ -152,7 +152,7 @@ export default class ApiService extends Service {
152152
* @param {IncomingMessage} req
153153
* @returns {Promise}
154154
155-
async authorize = (ctx: Context < any, {
155+
async authorize (ctx: Context < any, {
156156
user: string;
157157
} > , route: Record<string, undefined>, req: IncomingMessage): Promise < any > => {
158158
// Get the authenticated user.

0 commit comments

Comments
 (0)