From 72880351fa15309a49616de197b128897dc9f1ec Mon Sep 17 00:00:00 2001 From: Chris W Date: Mon, 30 Oct 2023 21:49:22 -0600 Subject: [PATCH] update README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 6d28607..1e0638f 100755 --- a/README.md +++ b/README.md @@ -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.