Conversation
Deploying utcode-learn with
|
| Latest commit: |
b68af7a
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b5546d5e.utcode-learn.pages.dev |
| Branch Preview URL: | https://rename-chat-app-endpoint.utcode-learn.pages.dev |
There was a problem hiding this comment.
Pull request overview
This PR refactors the endpoint naming convention from action-based (/send) to resource-based RESTful naming (/messages for the chat app and /posts for the forum app). This improves API consistency by using the same resource path with different HTTP methods (GET and POST) for retrieving and creating resources, following REST best practices.
Key Changes:
- Chat app endpoints: Changed POST
/sendto POST/messagesto match the existing GET/messagesendpoint - Forum app endpoints: Changed POST
/sendto POST/poststo match the existing GET/postsendpoint - Updated all documentation and code samples to reflect the new endpoint naming
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
docs/3-web-servers/08-database/index.mdx |
Updated tutorial documentation for the forum app to reference /posts instead of /send for POST requests in instructions and code examples |
docs/3-web-servers/08-database/_samples/forum/public/script.js |
Updated client-side JavaScript to send POST requests to /posts endpoint |
docs/3-web-servers/08-database/_samples/forum/main.mjs |
Updated server-side endpoint handler from app.post("/send") to app.post("/posts") |
docs/3-web-servers/07-fetch-api-post/index.mdx |
Updated tutorial documentation for the chat app to reference /messages instead of /send for POST requests in instructions and code examples |
docs/3-web-servers/07-fetch-api-post/_samples/chat-app/public/script.js |
Updated client-side JavaScript to send POST requests to /messages endpoint |
docs/3-web-servers/07-fetch-api-post/_samples/chat-app/main.mjs |
Updated server-side endpoint handler from app.post("/send") to app.post("/messages") |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
chelproc
approved these changes
Dec 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
チャットアプリと掲示板のPOSTリクエストのエンドポイントの命名が不適切であったため、
/sendから/messagesあるいは/postsに修正しました。