Mercurial > sci
diff scid/http.c @ 23:2cb228f23f53
misc: rework todo/jobs HTTP requests
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 21 Jul 2022 21:55:02 +0200 |
parents | f98ea578b1ef |
children | 34cbbd215ef7 |
line wrap: on
line diff
--- a/scid/http.c Thu Jul 21 20:23:22 2022 +0200 +++ b/scid/http.c Thu Jul 21 21:55:02 2022 +0200 @@ -27,10 +27,11 @@ #include "http.h" #include "log.h" -#include "page.h" +#include "page-api-jobs.h" #include "page-api-projects.h" #include "page-api-todo.h" #include "page-api-workers.h" +#include "page.h" enum page { PAGE_API, @@ -44,8 +45,9 @@ const char *prefix; void (*handler)(struct kreq *); } apis[] = { + { "v1/jobs", page_api_v1_jobs }, + { "v1/projects", page_api_v1_projects }, { "v1/todo", page_api_v1_todo }, - { "v1/projects", page_api_v1_projects }, { "v1/workers", page_api_v1_workers }, { NULL, NULL } };