Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
15 lines
348 B
Go
15 lines
348 B
Go
package server
|
|
|
|
import "strings"
|
|
|
|
// Both the compact /e/docs and the historic /e/-/docs edit /docs.
|
|
func semanticEditorPath(route string) string {
|
|
if route == "/e/-" || route == "/e/-/" {
|
|
return "/"
|
|
}
|
|
if strings.HasPrefix(route, "/e/-/") {
|
|
return "/" + strings.TrimPrefix(route, "/e/-/")
|
|
}
|
|
return "/" + strings.TrimPrefix(route, "/e/")
|
|
}
|