MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / normalizeOperationPath

Function normalizeOperationPath

core/middleware/operation.go:294–298  ·  view source on GitHub ↗
(reqPath string)

Source from the content-addressed store, hash-verified

292}
293
294func normalizeOperationPath(reqPath string) string {
295 pathItem := strings.TrimPrefix(reqPath, "/api/v2")
296 pathItem = strings.TrimPrefix(pathItem, "/api/v2/core")
297 return pathItem
298}
299
300func newDB(pathItem string) (*gorm.DB, error) {
301 dbFile := ""

Callers 1

OperationLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected