basic video fetching
This commit is contained in:
parent
48642bdd96
commit
cca6660c95
4 changed files with 177 additions and 0 deletions
2
main.go
2
main.go
|
@ -111,6 +111,8 @@ func handleSearch(w http.ResponseWriter, r *http.Request) {
|
|||
handleTextSearch(w, query, safe, lang)
|
||||
case "image":
|
||||
handleImageSearch(w, query, safe, lang, page)
|
||||
case "video":
|
||||
videoSearchEndpointHandler(w, r)
|
||||
default:
|
||||
http.ServeFile(w, r, "static/search.html")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue