Open GurinderRawala opened 3 weeks ago
The changes in this pull request include updates to the README.md
file, the addition of a logging statement in the file upload route within src/api/routes/files.js
, and modifications to the CORS configuration in src/api/server.js
. Specifically, a new command npm run build
is introduced in the README, a logging statement is added to enhance traceability of file uploads, and the CORS origin
property is changed to a wildcard to allow requests from any origin.
File | Change Summary |
---|---|
README.md | Added command npm run build to the "Get Started" section. |
src/api/routes/files.js | Added logging statement for successful file uploads: log.info("file info uploaded successfully.", { fieldToUpdate, uuid }) . |
src/api/server.js | Modified CORS configuration to allow requests from any origin by changing origin to '*' . |
sequenceDiagram
participant User
participant Server
participant Logger
User->>Server: Upload file
Server-->>Logger: log.info("file info uploaded successfully.", { fieldToUpdate, uuid })
Logger-->>Server: Log entry created
Server-->>User: File upload successful
🐇 "In the README, a command so bright,
npm run build
now takes flight.
With logs for files that hop and play,
The server's open, come what may!
A wild card for all, let’s cheer and sing,
For changes that make our project spring!" 🌼
@gurindercoderabbitai are you around ?
[!TIP] For best results, initiate chat on the files or code changes.
@GurinderRawala Yes, I'm here. How can I assist you?
Summary by CodeRabbit
New Features
npm run build
to the "Get Started" section of the README for server setup.Improvements
Configuration Changes