feat(api): add search query to targets

This commit is contained in:
Jef Roosens 2022-12-31 10:19:59 +01:00 committed by Chewing_Bever
parent 8a0214babe
commit 4eee0e069b
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
5 changed files with 58 additions and 12 deletions

View file

@ -81,3 +81,6 @@ fn (mut app App) v1_patch_target(id int) web.Result {
return app.json(.ok, new_data_response(target))
}
['/api/v1/targets/search'; auth; get; markused]
fn (mut app App) v1_search_targets()