Add clear search history API (#26)

* Add clear search history API

* changelog
This commit is contained in:
Brahim Hadriche authored and GitHub committed 2022-12-06 17:04:30 -05:00
1 parent aa6cc6eb54
commit f71c70d90b
3 files changed
+19

No files matched your search

@@ -27,6 +27,10 @@ namespace Http
server.task.top.command = `play:${videoId}`
response.Default(204, "OK")
return true
else if payload.command = "clear-search-history"
RegistryUtils.Delete("search_history")
response.Default(204, "OK")
return true
end if
response.Default(400, `Invalid command: ${payload.command}`)