mirror of
https://github.com/harness/drone.git
synced 2025-05-07 13:49:58 +08:00

Preparing the support for harness specific API router + http handler, which allows us to have complete control over the rest api naming and functionality, without having to do complex path rewrites or request / reponse rewrites inline.
14 lines
176 B
Go
14 lines
176 B
Go
package request
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
const (
|
|
PathParamTokenID = "tokenID"
|
|
)
|
|
|
|
func GetTokenID(r *http.Request) (int64, error) {
|
|
return ParseAsInt64(r, PathParamTokenID)
|
|
}
|