Open GurinderRawala opened 2 months ago
The changes include updates to the README.md
file by adding a command for building the server, modifications to the CORS configuration in src/api/server.js
to allow requests from any origin, and enhancements to the inviteDriver
function and createInviteDriver
method in the driver modules to incorporate a logging parameter. These adjustments aim to improve documentation, accessibility, and observability within the codebase.
File | Change Summary |
---|---|
README.md |
Added command npm run build for server setup. |
src/api/server.js |
Modified CORS configuration to allow requests from any origin (* ). |
src/driver/driver-operations.js |
Added log parameter to inviteDriver function for enhanced logging capabilities. |
src/driver/driver.js |
Updated createInviteDriver method to include log parameter, enhancing logging of driver invitation. |
sequenceDiagram
participant User
participant Server
participant Driver
User->>Server: Sends request to invite driver
Server->>Driver: Calls createInviteDriver()
Driver->>Driver: Invokes inviteDriver(log)
Driver->>Server: Logs invitation process
Server->>User: Responds with invitation status
🐰 In the code, a change took flight,
With logs to track both day and night.
CORS now opens wide the door,
While README guides to build and more.
A hop, a jump, in code we play,
Enhancements made, hip-hip-hooray! 🎉
Summary by CodeRabbit
New Features
npm run build
).Bug Fixes