<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ngsw_taro</author_name>
  <author_url>https://blog.hatena.ne.jp/ngsw_taro/</author_url>
  <blog_title>算譜王におれはなる!!!!</blog_title>
  <blog_url>https://taro.hatenablog.jp/</blog_url>
  <categories>
    <anon>Kotlin</anon>
    <anon>Ktor</anon>
  </categories>
  <description>アドベントカレンダーの季節なので、KtorでWebアプリケーションを作るときのことを考えたメモを残します。 いわゆるコントローラ、リクエストを受けてごにょごにょしてレスポンスを返すところを担うやつ。 そしてルーティング、パスとコントローラを紐づけるやつ。 Ktorでこの両者をどう扱うかを考えてみました。 HelloWorldの延長線上でズラズラとコードを並べるとこんな感じになります（完全なコードではありません）。 コントローラの役割とルーティングが同居する世界です。 これを基本形として、いくつかの工夫を見ていきたいと思います。 val userRepository = MyUserReposi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftaro.hatenablog.jp%2Fentry%2F2019%2F12%2F01%2F112612&quot; title=&quot;Ktorのルーティングとコントローラについて考える - 算譜王におれはなる!!!!&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-12-01 11:26:12</published>
  <title>Ktorのルーティングとコントローラについて考える</title>
  <type>rich</type>
  <url>https://taro.hatenablog.jp/entry/2019/12/01/112612</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
