Comment

Comment by RUnconcerned

There's nothing stopping an HTTP API from returning both HTML and JSON from the same endpoint. Just have the client send "text/html" or "application/json" in the Accept header, depending on what it needs.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton