update README

This commit is contained in:
Chris W 2023-10-30 21:49:22 -06:00
parent 4309b55aa4
commit 72880351fa
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ The index route is used as a help/ping route. It will always return a 200 respon
The generate route is used to generate images. It takes the arguments listed above as query parameters, and returns a PNG image.
#### `GET /detect`
The detect route is used to detect the language of a code snippet. It takes a single argument, `code`, which is the code to detect the language of. It returns a sorted list of languages, along with the confidence of the detection (as a number between 0 and 100).
#### `GET /themes`
The themes route is used to get a list of available themes. It takes no arguments, and returns a JSON object containing a list of themes.