Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add input validation for gitURL and slug in POST /project endpoint #8

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

codeterrayt
Copy link

  • Implemented validation to ensure gitURL is a valid GitHub URL
  • Added validation to enforce proper format for the slug field, disallowing spaces
  • Return appropriate error responses for invalid input formats

- Implemented validation to ensure gitURL is a valid GitHub URL
- Added validation to enforce proper format for the slug field, disallowing spaces
- Return appropriate error responses for invalid input formats
api-server/index.js Show resolved Hide resolved
- Updated the /project endpoint to generate a new slug if not provided
- Resolves issue where endpoint previously returned an error response when slug was not present
Issue: Containers are still running piyushgarg-dev#7
added: process.exit(0) to exit
@codeterrayt
Copy link
Author

hey @piyushgarg-dev Please have a look at changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants