MM-56819: Introduce --local mode in MMCTL to handle user preferences. (#26972)

Этот коммит содержится в:
Kunal Acharya
2024-09-09 17:42:22 +05:30
коммит произвёл GitHub
родитель 388dfdfbca
Коммит 0c3c298253
3 изменённых файлов: 72 добавлений и 0 удалений

Просмотреть файл

@@ -395,6 +395,7 @@ func InitLocal(srv *app.Server) *API {
api.BaseRoutes.LDAP = api.BaseRoutes.APIRoot.PathPrefix("/ldap").Subrouter()
api.BaseRoutes.System = api.BaseRoutes.APIRoot.PathPrefix("/system").Subrouter()
api.BaseRoutes.Preferences = api.BaseRoutes.User.PathPrefix("/preferences").Subrouter()
api.BaseRoutes.Posts = api.BaseRoutes.APIRoot.PathPrefix("/posts").Subrouter()
api.BaseRoutes.Post = api.BaseRoutes.Posts.PathPrefix("/{post_id:[A-Za-z0-9]+}").Subrouter()
api.BaseRoutes.PostsForChannel = api.BaseRoutes.Channel.PathPrefix("/posts").Subrouter()
@@ -425,6 +426,7 @@ func InitLocal(srv *app.Server) *API {
api.InitLdapLocal()
api.InitSystemLocal()
api.InitPostLocal()
api.InitPreferenceLocal()
api.InitRoleLocal()
api.InitUploadLocal()
api.InitImportLocal()