Skip to content

Commit

Permalink
add config file uri
Browse files Browse the repository at this point in the history
  • Loading branch information
ayocodingit committed Feb 6, 2024
1 parent 3fec3e9 commit b5d166f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ DB_AUTH_SOURCE=
JWT_ACCESS_SECRET=

#File
FILE_URL=
FILE_URI=

#AWS
AWS_ACCESS_KEY_ID=
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ export const RegexSubdomain = /^[ a-z0-9-]+$/
export const RegexSanitize = /^[ a-zA-Z0-9_,.()'"&\?\-/]+$/
export const RegexObjectID = /^[0-9a-fA-F]{24}$/
export const RegexContentTypeImage = /^image\//
export const RegexExtensionImage = /.png|.jpg|.jpeg/i
export const RegexExtensionImage = /.png|.jpg|.jpeg|.svg/i
7 changes: 4 additions & 3 deletions src/modules/auth/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@ class Auth {
this.httpPrivate(handler)
}

private httpPublic(handler: Handler) {}

private httpPrivate(handler: Handler) {
private httpPublic(handler: Handler) {
const Router = this.http.Router()

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

this.http.SetRouter('/v1/auth', Router)
}

private httpPrivate(handler: Handler) {
}
}

export default Auth

0 comments on commit b5d166f

Please sign in to comment.