diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-08-28 16:10:01 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-08-28 16:10:01 -0400 |
commit | 910e69ac1b504ba0b9616d84280690c719cfaa3c (patch) | |
tree | afd08e17d12b4638d1bd8dad6bfc580bbbe4ed54 /svc/svc.go | |
parent | 0862bfa13c77484461eb96b2d94180d835ef2805 (diff) | |
download | getwtxt-910e69ac1b504ba0b9616d84280690c719cfaa3c.tar.gz |
endpoint for version response v0.4.5
Diffstat (limited to 'svc/svc.go')
-rw-r--r-- | svc/svc.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svc/svc.go b/svc/svc.go index b20ac7a..8b5c113 100644 --- a/svc/svc.go +++ b/svc/svc.go @@ -123,7 +123,7 @@ func setEndpointRouting(api *mux.Router) { // Specifying the endpoint with and without query information. // Will return 404 on empty queries otherwise. - api.Path("/{format:(?:plain)}/{endpoint:(?:mentions|users|tweets)}"). + api.Path("/{format:(?:plain)}/{endpoint:(?:mentions|users|tweets|version)}"). Methods("GET", "HEAD"). HandlerFunc(apiEndpointHandler) api.Path("/{format:(?:plain)}/{endpoint:(?:mentions|users|tweets)}"). |