mirror of
https://github.com/FranP-code/open-react-blog-api.git
synced 2025-10-12 23:52:57 +00:00
Changed user from GET request to POST request
This commit is contained in:
@@ -9,7 +9,7 @@ Base URL: [https://open-react-blog-api.herokuapp.com](https://open-react-blog-ap
|
||||
- `/user` - Get determinated user data
|
||||
|
||||
Details:
|
||||
- **GET Request**
|
||||
- **POST Request**
|
||||
- Request's Body:
|
||||
```json
|
||||
{
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<code class="endpoint">/user</code> - Get determinated user data
|
||||
<p>Details:</p>
|
||||
<ul>
|
||||
<li><strong>GET Request</strong></li>
|
||||
<li><strong>POST Request</strong></li>
|
||||
<li>
|
||||
<p>Request's Body:</p>
|
||||
<pre><code>
|
||||
|
||||
@@ -11,7 +11,7 @@ admin.initializeApp({
|
||||
|
||||
const db = getFirestore()
|
||||
|
||||
router.get("/", async (req, res) => {
|
||||
router.post("/", async (req, res) => {
|
||||
|
||||
console.log(req.body)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user