|
|
|
|
|
by wasting_time
10 hours ago
|
|
I made a UI with htmx, it works great. But now I want to add a JSON API to the program: I could reuse the same routes (/create, etc), but require an application+json header; or add a full /api/ component essentially duplicating the logic from the main app. Neither option is great. |
|
That's what we did and it works pretty well in practice.