mattermost/server
Alejandro García Montoro 2b075c9b74
MM-65970: New way to build routes in Client4 (#34499)
* Add Client4 route building functions

* Make DoAPIRequestWithHeaders add the API URL

This makes it consistent with the other DoAPIXYZ functions, which all
prepend the provided URL with the client's API URL.

* Use the new route building logic in Client4

* Address review comments

- clean renamed to cleanSegment
- JoinRoutes and JoinSegments joined in Join
- newClientRoute uses Join

* Fix new routes from merge

* Remove unused import

* Simplify error handling around clientRoute (#34870)

---------

Co-authored-by: Jesse Hallam <jesse@mattermost.com>
Co-authored-by: Jesse Hallam <jesse.hallam@gmail.com>
Co-authored-by: Mattermost Build <build@mattermost.com>
2026-01-29 14:26:47 +00:00
..
bin Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
build Update runtime chainguard image for fips (#34997) 2026-01-20 23:09:51 +02:00
channels MM-65970: New way to build routes in Client4 (#34499) 2026-01-29 14:26:47 +00:00
cmd Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
config Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
einterfaces Metrics for Autotranslations (#34900) 2026-01-29 05:46:45 -05:00
enterprise Metrics for Autotranslations (#34900) 2026-01-29 05:46:45 -05:00
fips MM-65959: Add FIPS indicator to about dialog (#34463) 2025-12-11 18:37:29 -04:00
fonts Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
i18n Translations update from Mattermost Weblate (#35055) 2026-01-27 19:05:43 +00:00
platform Add audits for accessing posts without membership (#31266) 2026-01-20 10:38:27 +01:00
public MM-65970: New way to build routes in Client4 (#34499) 2026-01-29 14:26:47 +00:00
scripts [MM-67030] Remove newsletter signup and replace with terms/privacy agreement (#34801) 2026-01-23 18:24:27 +00:00
templates MM-59966 - Compliance Export overhaul - feature branch (#29789) 2025-01-10 16:56:02 -05:00
tests Remove vestigial MySQL support (#34865) 2026-01-20 21:01:59 +00:00
.gitignore Update .server/gitignore to ignore all JSON files under the directory (#27593) 2024-07-11 09:12:57 +02:00
.go-version bumps go version to 1.24.11 (#34876) 2026-01-09 17:22:23 +01:00
.golangci.yml MM-62151 avoid select * for post store (#34709) 2026-01-09 18:23:16 +00:00
.sass-lint.yml Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
config.mk Enabling Prometheus, Grafana, Loki and Promtail running as containers by default in local dev environments (#34263) 2025-10-23 14:08:53 +02:00
copyright.txt Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
docker-compose.makefile.m1.yml Remove obsolete docker version (#30040) 2025-01-30 12:53:25 -07:00
docker-compose.makefile.yml Explicitly name Postgres container volume (#33954) 2025-10-02 09:29:00 -04:00
docker-compose.pgvector.yml Add support for pgvector in local dev (#33900) 2025-09-15 18:58:43 +00:00
docker-compose.yaml selinux security context fixes in docker compose (#34394) 2025-11-14 17:32:56 +01:00
go.mod updates opensearch library dependency and adds tests for caused_by error reason returned (#34826) 2026-01-27 16:01:22 +01:00
go.sum updates opensearch library dependency and adds tests for caused_by error reason returned (#34826) 2026-01-27 16:01:22 +01:00
Makefile Update the FIPS flavour of Playbooks to v2.6.2 (#35096) 2026-01-29 08:53:28 +02:00
path.go Centralize the GetPackagePath (#27004) 2024-05-15 12:05:13 -03:00