Open schmanat opened 6 years ago
I am having the same issue, can you please help me.
I'm having the same issue. And if I add another level, the json output doesn't contain anything.
I'm going to take a guess that static-api-generator always expects a collection and that collection has to be grouped by a folder.
As a temporary fix you could try using source/:slogans/:slogan
and place all files in a sub folder source/slogans/
.
First of all, thx for your greate tool. I'm playing arround with it and have a issue that i couldn't solve.
I read the article from CSS Tricks.
I create a source folder with the following structure:
the structure of slogan is only author: "Hugo" slogan: "Lorem ipsum ..."
I want to generate the following endpoint /slogans
The Code of my
server.js
:After generating it with npm start I get 2 json files
Can you tell me what I'm doing wrong. The strange thing ist the content of slogans.json. It contains two result objects?
The content of .json seems right, but why is there no filename?
Content of slogans.json
Content of .json