<feed xmlns='http://www.w3.org/2005/Atom'>
<title>microblog/app/routes/api.passkey.tsx, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='http://git.yyamashita.com/microblog/'/>
<entry>
<title>Fix: move passkey API to dedicated route without React component</title>
<updated>2026-06-19T15:43:10+00:00</updated>
<author>
<name>yyamashita</name>
<email>yyamashita@hetzner.yyamashita.com</email>
</author>
<published>2026-06-19T15:43:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.yyamashita.com/microblog/commit/?id=abe09e38fb5dc5ede5abe715520c3e4006c66894'/>
<id>abe09e38fb5dc5ede5abe715520c3e4006c66894</id>
<content type='text'>
React Router v7 treats POST to routes with a default export as document
requests and returns HTML instead of the action's JSON response. Moving
the API logic to an action-only route (/api/passkey) fixes this.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
React Router v7 treats POST to routes with a default export as document
requests and returns HTML instead of the action's JSON response. Moving
the API logic to an action-only route (/api/passkey) fixes this.

Co-Authored-By: Claude Sonnet 4.6 &lt;noreply@anthropic.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
