docker updated
This commit is contained in:
@@ -23,7 +23,7 @@ USER appuser
|
||||
COPY . .
|
||||
# Expose the port that the application listens on.
|
||||
|
||||
EXPOSE 3503
|
||||
EXPOSE 4999
|
||||
|
||||
|
||||
# Run the application.
|
||||
|
||||
@@ -12,6 +12,7 @@ export const SignupController = async (
|
||||
): Promise<void> => {
|
||||
try {
|
||||
const { userName, Email, Password } = req.body;
|
||||
console.log('req.body: ', req.body);
|
||||
if (!userName || !Email || !Password) {
|
||||
res.status(400).json({
|
||||
message: "All fields are required",
|
||||
@@ -19,6 +20,7 @@ export const SignupController = async (
|
||||
return;
|
||||
}
|
||||
const result = await AuthSignup(req.body);
|
||||
console.log('result: ', result);
|
||||
|
||||
switch (result.status) {
|
||||
case "User already exists":
|
||||
|
||||
@@ -26,7 +26,7 @@ USER root
|
||||
COPY . .
|
||||
# Expose the port that the application listens on.
|
||||
|
||||
EXPOSE 1059
|
||||
EXPOSE 7999
|
||||
|
||||
|
||||
# Run the application.
|
||||
|
||||
Reference in New Issue
Block a user