add: temporary CORS headers
add: better sql calls with JOIN
This commit is contained in:
parent
6050f1cc5f
commit
5a19e99627
7 changed files with 50 additions and 12 deletions
include/models
|
@ -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();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue