add github link to api

This commit is contained in:
Chris W 2023-10-08 17:43:09 -06:00
parent 71d91f02e6
commit 6e795858bf
2 changed files with 2 additions and 1 deletions

View File

@ -219,4 +219,4 @@ pub struct ConfigQuery {
/// The syntax highlight theme. It can be a theme name or path to a .tmTheme file. /// The syntax highlight theme. It can be a theme name or path to a .tmTheme file.
pub theme: Option<String> pub theme: Option<String>
} }

View File

@ -75,6 +75,7 @@ async fn help() -> impl Responder {
let json = r#" let json = r#"
{ {
"message": "Hello, world! Welcome to Inkify, a simple API for generating images from code. Think of it like Carbon in API form.", "message": "Hello, world! Welcome to Inkify, a simple API for generating images from code. Think of it like Carbon in API form.",
"github": "https://github.com/watzon/inkify",
"routes": { "routes": {
"GET /": "This help text. Will always return 200, so you can use it to check if the server is up.", "GET /": "This help text. Will always return 200, so you can use it to check if the server is up.",
"GET /themes": "Return a list of available syntax themes.", "GET /themes": "Return a list of available syntax themes.",