Skip to content

Commit b5d166f

Browse files
committed
add config file uri
1 parent 3fec3e9 commit b5d166f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ DB_AUTH_SOURCE=
1717
JWT_ACCESS_SECRET=
1818

1919
#File
20-
FILE_URL=
20+
FILE_URI=
2121

2222
#AWS
2323
AWS_ACCESS_KEY_ID=

src/helpers/regex.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export const RegexSubdomain = /^[ a-z0-9-]+$/
33
export const RegexSanitize = /^[ a-zA-Z0-9_,.()'"&\?\-/]+$/
44
export const RegexObjectID = /^[0-9a-fA-F]{24}$/
55
export const RegexContentTypeImage = /^image\//
6-
export const RegexExtensionImage = /.png|.jpg|.jpeg/i
6+
export const RegexExtensionImage = /.png|.jpg|.jpeg|.svg/i

src/modules/auth/auth.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ class Auth {
2222
this.httpPrivate(handler)
2323
}
2424

25-
private httpPublic(handler: Handler) {}
26-
27-
private httpPrivate(handler: Handler) {
25+
private httpPublic(handler: Handler) {
2826
const Router = this.http.Router()
2927

3028
Router.post('/login', handler.Login())
3129

3230
this.http.SetRouter('/v1/auth', Router)
3331
}
32+
33+
private httpPrivate(handler: Handler) {
34+
}
3435
}
3536

3637
export default Auth

0 commit comments

Comments
 (0)