Improve controller endpoint and model

This commit is contained in:
Tobias Reisinger 2023-11-30 01:43:56 +01:00
parent 2f51ebf91e
commit 6400b7745c
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 103 additions and 7 deletions
emgauwa-core/src

View file

@ -57,6 +57,9 @@ async fn main() -> std::io::Result<()> {
.app_data(web::Data::new(pool.clone()))
.app_data(web::Data::new(connected_controllers.clone()))
.service(handlers::v1::controllers::index)
.service(handlers::v1::controllers::show)
.service(handlers::v1::controllers::update)
.service(handlers::v1::controllers::delete)
.service(handlers::v1::relays::index)
.service(handlers::v1::schedules::index)
.service(handlers::v1::schedules::tagged)