From b56931a29fa6c23d57448c1202356a66f0b7e109 Mon Sep 17 00:00:00 2001 From: Daniel Zapata Date: Sun, 11 Sep 2022 11:06:27 -0500 Subject: [PATCH] comment --- routes.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/routes.c b/routes.c index ee6eb40..8c1d95a 100644 --- a/routes.c +++ b/routes.c @@ -3,6 +3,11 @@ typedef struct { char *routename; } route; +// TO ADD A ROUTE: +// 1. define a function that returns a char* here (that is the json content) +// 2. add a route declaration at the bottom +// like: `route stateR = { .routeFnPtr = &state, .routename = "/state.json"};` + char* state(int a) { return "{\"status\":1}";