[CP-564] Make desktop endpoints a separate lib

In order to have different sets of endpoints for different products,
we need to separate endpoints from the desktop service.
This commit is contained in:
Internal Server Error - Gitea: Git with a cup of tea
500 Internal Server Error

Gitea Version: 1.28.0+dev-477-g8b6ad49a5f