Skip to content

Commit

Permalink
Correct scroll endpoint when a prefix is being used.
Browse files Browse the repository at this point in the history
The client is already making a /query request to the prefixed URL, so
there's no need for us to add it on again.
  • Loading branch information
LTLA committed Apr 26, 2024
1 parent 13c96e9 commit dd7edff
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@ func main() {
http.HandleFunc("POST " + prefix + "/deregister/start", newDeregisterStartHandler(db, verifier))
http.HandleFunc("POST " + prefix + "/deregister/finish", newDeregisterFinishHandler(db, verifier))

full_query := prefix + "/query"
http.HandleFunc(full_query, newQueryHandler(db, tokenizer, wild_tokenizer, full_query))

http.HandleFunc(prefix + "/query", newQueryHandler(db, tokenizer, wild_tokenizer, "/query"))
http.HandleFunc(prefix + "/retrieve/metadata", newRetrieveMetadataHandler(db))
http.HandleFunc(prefix + "/retrieve/file", newRetrieveFileHandler(db))
http.HandleFunc(prefix + "/list", newListFilesHandler(db))
Expand Down

0 comments on commit dd7edff

Please sign in to comment.