-
Notifications
You must be signed in to change notification settings - Fork 3
Express の章の再構成 #787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Express の章の再構成 #787
Conversation
Deploying utcode-learn with
|
| Latest commit: |
2e78852
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5525f57f.utcode-learn.pages.dev |
| Branch Preview URL: | https://restructure-express.utcode-learn.pages.dev |
655c087 to
ad49567
Compare
|
|
||
| app.get("/", (request, response) => { | ||
| response.send("Hello World"); | ||
| response.send('Hello World <a href="./lang/ja">日本語</a>'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
他の場所では Hello World! となっているので、統一してください。
| - `href` 属性が相対パスの形式で指定されていれば、現在のパスを基準に [Linux における相対パス](/docs/web-servers/linux-commands/#パス)と同様の方法で URL を更新します。この例では、更新前のパスが `/` で、`href` 属性には `./lang/ja` が指定されているため、更新後のパスは `/lang/ja` になり、URL は `http://localhost:3000/lang/ja` に変化します。 | ||
| 8. 2 から 5 までの手順が、`/lang/ja` というパスに対して行われます。 | ||
|
|
||
| ### 確認問題 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
確認問題には解答例をつけてください。
|
@aster-void 細かいところは後で対応するので構成が問題ないかだけ先に確認してほしいです! |
| [`Request`](https://expressjs.com/ja/api.html#req) オブジェクトにどのような情報が含まれているか覗いてみましょう。 | ||
|
|
||
| ::: | ||
| ## HTML に指定された外部リソースの取得 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここの章の終わりに最終的に伝えたいことを明示してもいいかもしれません。
「わかったけど、だから?」となる人が出そうな気がします。
|
全部見て、議題に上がりそうなところおよび、気になったところをコメントしました。他は良いかと思います。 |
1da8e92 to
9be73c6
Compare
9be73c6 to
af883ea
Compare
docs/3-web-servers/05-server/_samples/app-use/static/index.html
Outdated
Show resolved
Hide resolved
docs/3-web-servers/05-server/_samples/app-use/static/index.html
Outdated
Show resolved
Hide resolved
docs/3-web-servers/05-server/_samples/app-use/static/sub/index.html
Outdated
Show resolved
Hide resolved
docs/3-web-servers/05-server/_samples/app-use/static/sub/script.js
Outdated
Show resolved
Hide resolved
eb3c323 to
2e78852
Compare
chvmvd
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
とりあえずよさそうです。
|
リリースしちゃうので、マージします。 |
Express の章を大幅に改定し、HTTP に対する理解を深められる内容にした。