Skip to content

Commit

Permalink
Update README.md with license information
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Dec 28, 2023
1 parent 14a11a6 commit d45dff1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,17 @@ DELETE /posts/1
DELETE /posts/1?_include=comments
```

# Serving static files
## Serving static files

If you create a `./public` directory, JSON Serve will serve its content in addition to the REST API. You can add custom directories using `-s/--static` option.

```sh
json-server -s ./static
json-server -s ./static -s ./node_modules
```

## License

This project uses the [Fair Source License](https://fair.io/). Note: Only organizations with 3+ users need to contribute a small amount through sponsorship [sponsor](https://github.com/sponsors/typicode) for usage. This license helps keep the project sustainable and healthy, benefiting everyone.

For more information, FAQs, and the rationale behind this, visit [https://fair.io/](https://fair.io/).

0 comments on commit d45dff1

Please sign in to comment.