Daniel-Boll / axum-js

A Axum http wrapper for NodeJS
MIT License
5 stars 3 forks source link

Implement Additional HTTP Methods in `axum-js` #4

Closed Daniel-Boll closed 1 year ago

Daniel-Boll commented 1 year ago

To make axum-js a more comprehensive and versatile API framework, it's essential to extend support to all standard HTTP methods. As of now, only the get method is implemented. This task involves adding the remaining standard HTTP methods: post, put, delete, options, head, patch, trace, and connect.

Each method should accept a path (as a string) and a callback function, similar to the existing get method. This enhancement should follow the pattern established in Issue #3 (Extend get Method to Support Callbacks).

Example for the post method:

app.post('/', (req, res) => {
  res.send('Post request received!')
});

Acceptance Criteria:

Dependencies:

Additional Context:

Implementing these additional HTTP methods will significantly enhance the versatility and utility of axum-js, aligning it with other full-featured server frameworks.