WIP REST routes to create / update Network filters
This commit is contained in:
@ -240,6 +240,10 @@ async fn main() -> std::io::Result<()> {
|
||||
web::get().to(network_controller::stop),
|
||||
)
|
||||
// Network filters controller
|
||||
.route(
|
||||
"/api/nwfilter/create",
|
||||
web::post().to(nwfilter_controller::create),
|
||||
)
|
||||
.route(
|
||||
"/api/nwfilter/list",
|
||||
web::get().to(nwfilter_controller::list),
|
||||
@ -248,6 +252,10 @@ async fn main() -> std::io::Result<()> {
|
||||
"/api/nwfilter/{uid}",
|
||||
web::get().to(nwfilter_controller::get_single),
|
||||
)
|
||||
.route(
|
||||
"/api/nwfilter/{uid}",
|
||||
web::put().to(nwfilter_controller::update),
|
||||
)
|
||||
// Static assets
|
||||
.route("/", web::get().to(static_controller::root_index))
|
||||
.route(
|
||||
|
Reference in New Issue
Block a user