-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2cd8c60
commit 2d6021f
Showing
10 changed files
with
105 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,5 +10,8 @@ ADD . /app | |
|
||
ENV NODE_ENV=dev | ||
|
||
EXPOSE 3001 | ||
EXPOSE 3002 | ||
|
||
CMD ["npm", "run", "start"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// import Joi from 'joi'; | ||
|
||
// export function validateRegister(body) { | ||
// const schema = Joi.object({ | ||
// email: Joi.string().email().min(3).required(), | ||
// password: Joi.string().min(6).max(20).required(), | ||
// name: Joi.string().min(3).max(24).required(), | ||
// language: Joi.string().valid('tr', 'en').required(), | ||
// platform: Joi.string().valid('Android', 'IOS').required(), | ||
// timezone: Joi.number().required(), | ||
// deviceId: Joi.string().min(4).required() | ||
// }); | ||
// return schema.validate(body); | ||
// } | ||
|
||
// export function validateLogin(body) { | ||
// const schema = Joi.object({ | ||
// email: Joi.string().email().min(3).required(), | ||
// password: Joi.string().min(6).max(20).required() | ||
// }); | ||
// return schema.validate(body); | ||
// } | ||
|
||
// export function validateSendVerificationCode(body) { | ||
// const schema = Joi.object({ | ||
// email: Joi.string().email().min(3).required() | ||
// }); | ||
// return schema.validate(body); | ||
// } | ||
|
||
// export function validateVerifyEmail(body) { | ||
// const schema = Joi.object({ | ||
// token: Joi.string().min(10).required(), | ||
// code: Joi.string().length(4).required() | ||
// }); | ||
// return schema.validate(body); | ||
// } | ||
|
||
// export function validateRefreshToken(body) { | ||
// const schema = Joi.object({ | ||
// refreshToken: Joi.string().min(10).required() | ||
// }); | ||
// return schema.validate(body); | ||
// } | ||
|
||
// export function validateForgotPassword(body) { | ||
// const schema = Joi.object({ | ||
// password: Joi.string().min(6).max(20).required() | ||
// }); | ||
// return schema.validate(body); | ||
// } | ||
|
||
// export function validateChangePassword(body) { | ||
// const schema = Joi.object({ | ||
// oldPassword: Joi.string().min(6).max(20).required(), | ||
// newPassword: Joi.string().min(6).max(20).required() | ||
// }); | ||
// return schema.validate(body); | ||
// } | ||
|
||
// export function validateEditUser(body) { | ||
// const schema = Joi.object({ | ||
// name: Joi.string().min(3).max(24), | ||
// username: Joi.string().min(3).max(15), | ||
// language: Joi.string().valid('tr', 'en'), | ||
// gender: Joi.string().valid('male', 'female', 'other'), | ||
// birthDate: Joi.date() | ||
// }); | ||
// return schema.validate(body); | ||
// } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters