Closed neverendingqs closed 6 years ago
This suggestion would actually break API requests with a trailing slash. We can just keep the existing structure and configure the http server to treat index.json as the default index file for a directory.
Hmm okay. Let me create another issue that lists out our options.
The succession to this ticket is now at: https://github.com/PokeAPI/pokeapi/issues/356
To support migrating PokeAPI to static files, the file structure will have to change from
to
, where each sub-directory also has a file of the same name, and all
index.json
instances are removed.It can be either a complete change or a flag if we don't want to change how
ditto serve
works.