diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-04-07 20:36:07 -0700 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-04-07 20:36:07 -0700 |
commit | afe92b2bcd3b8e914496006a414ad9b95dba3f0b (patch) | |
tree | 40aca87652d696db10d37eb19c4049528b8d7519 /system/api/server.go | |
parent | ba201f640c883d5ed2f3e1f68daff3a7ee4c8b9f (diff) |
add initial implementation of api search handler with full-text search by type
Diffstat (limited to 'system/api/server.go')
-rw-r--r-- | system/api/server.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/system/api/server.go b/system/api/server.go index c568877..209ddaa 100644 --- a/system/api/server.go +++ b/system/api/server.go @@ -13,4 +13,6 @@ func Run() { http.HandleFunc("/api/content/update", Record(CORS(updateContentHandler))) http.HandleFunc("/api/content/delete", Record(CORS(deleteContentHandler))) + + http.HandleFunc("/api/search", Record(CORS(searchContentHandler))) } |