summaryrefslogtreecommitdiffstats
path: root/api4/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/api.go')
-rw-r--r--api4/api.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api4/api.go b/api4/api.go
index ed3dda054..b324959e9 100644
--- a/api4/api.go
+++ b/api4/api.go
@@ -108,7 +108,7 @@ type Routes struct {
Webrtc *mux.Router // 'api/v4/webrtc'
- ServiceTerms *mux.Router // 'api/v4/service_terms
+ TermsOfService *mux.Router // 'api/v4/terms_of_service
}
type API struct {
@@ -205,7 +205,7 @@ func Init(a *app.App, root *mux.Router) *API {
api.BaseRoutes.Image = api.BaseRoutes.ApiRoot.PathPrefix("/image").Subrouter()
- api.BaseRoutes.ServiceTerms = api.BaseRoutes.ApiRoot.PathPrefix("/terms_of_service").Subrouter()
+ api.BaseRoutes.TermsOfService = api.BaseRoutes.ApiRoot.PathPrefix("/terms_of_service").Subrouter()
api.InitUser()
api.InitTeam()
@@ -235,7 +235,7 @@ func Init(a *app.App, root *mux.Router) *API {
api.InitRole()
api.InitScheme()
api.InitImage()
- api.InitServiceTerms()
+ api.InitTermsOfService()
root.Handle("/api/v4/{anything:.*}", http.HandlerFunc(api.Handle404))