Comment

Comment by CptKriechstrom

Seems like a Solution in search for a Problem. Instead of hardcoding the URL to the Request it can be set in the config like it was done with jsonplaceholder.api.token.

And creating a Request for every API-Endpoint instead of a single API-Client Class seems overkill.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton