From cef5028cbeed93b6493f6d1f379afe4ca85535c8 Mon Sep 17 00:00:00 2001 From: Ruzette Tanyag Date: Tue, 28 Feb 2017 04:14:16 -0500 Subject: Implemented preferences endpoints for apiv4 (#5531) * implemented preferences endpoints for apiv4 * added user id in preferences endpoints --- api4/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'api4/api.go') diff --git a/api4/api.go b/api4/api.go index ca43e7275..c8c0e170b 100644 --- a/api4/api.go +++ b/api4/api.go @@ -130,7 +130,7 @@ func InitApi(full bool) { BaseRoutes.OAuth = BaseRoutes.ApiRoot.PathPrefix("/oauth").Subrouter() BaseRoutes.Admin = BaseRoutes.ApiRoot.PathPrefix("/admin").Subrouter() BaseRoutes.System = BaseRoutes.ApiRoot.PathPrefix("/system").Subrouter() - BaseRoutes.Preferences = BaseRoutes.ApiRoot.PathPrefix("/preferences").Subrouter() + BaseRoutes.Preferences = BaseRoutes.User.PathPrefix("/preferences").Subrouter() BaseRoutes.License = BaseRoutes.ApiRoot.PathPrefix("/license").Subrouter() BaseRoutes.Public = BaseRoutes.ApiRoot.PathPrefix("/public").Subrouter() @@ -146,6 +146,7 @@ func InitApi(full bool) { InitFile() InitSystem() InitWebhook() + InitPreference() app.Srv.Router.Handle("/api/v4/{anything:.*}", http.HandlerFunc(Handle404)) -- cgit v1.2.3-1-g7c22