drone/internal/api/request/path.go
Johannes Batzill 5786ad2409 [Embedded] Harness Router, Inline Space Creation, Bootstrap, Harness/Admin User Setup (#28)
Adds the basic for harness embedded mode:
- Harness dedicated router with custom APIHandler
- Inline Space Creation
- Client for Account/Org/Project
- Bootstrap (Allows for automated creation of admin user and gitness service (used for all platform required ops))
- Inline harness service principal creation
- Ignore flag for ACL.
2022-10-10 21:32:14 -07:00

14 lines
184 B
Go

package request
import (
"net/http"
)
const (
PathParamPathID = "pathID"
)
func GetPathIDFromPath(r *http.Request) (int64, error) {
return PathParamAsInt64(r, PathParamPathID)
}