tbreuss / mithril-by-examples

Learn Mithril.js by seeing, reviewing, and running up-to-date code examples
https://mithril-by-examples.js.org
MIT License
10 stars 8 forks source link

Add API endpoint GET /api/examples.json #24

Closed tbreuss closed 2 years ago

tbreuss commented 2 years ago

Create API endpoint GET /api/examples.json adding a corresponding JSON file that includes certain front matter data from the files within the examples directory.

Instructions to do so can be found here: https://dev.to/mattwaler/creating-json-files-with-eleventy-13lk.

The API endpoint musst be:

The data from front matter must include:

The goal is to have an API with several endpoints (in the end) starting with this one.

tbreuss commented 2 years ago

First version see #25