add: temporary CORS headers

add: better sql calls with JOIN
This commit is contained in:
Tobias Reisinger 2020-05-20 00:51:16 +02:00
parent 6050f1cc5f
commit 5a19e99627
7 changed files with 50 additions and 12 deletions
include/models

View file

@ -48,6 +48,9 @@ relay_get_by_id(int id);
relay_t*
relay_get_for_controller(int controller_id, int relay_num);
relay_t**
relay_get_with_schedule(int schedule_id);
relay_t**
relay_get_all();

View file

@ -52,6 +52,9 @@ schedule_get_by_uid_or_off(uuid_t uid);
schedule_t*
schedule_get_by_uid(uuid_t uid);
schedule_t**
schedule_get_relay_weekdays(int relay_id);
schedule_t**
schedule_get_all();