mirror of
https://github.com/openfaas/faas.git
synced 2025-06-23 07:13:23 +00:00
- Extend stack to include a test function
- Allow _ char in routes - Let Dockerfile shrink by coming from alpine
This commit is contained in:
@ -185,7 +185,7 @@ func main() {
|
||||
r := mux.NewRouter()
|
||||
r.HandleFunc("/", makeProxy(metricsOptions, false))
|
||||
|
||||
r.HandleFunc("/function/{name:[a-zA-Z]+}", makeProxy(metricsOptions, true))
|
||||
r.HandleFunc("/function/{name:[a-zA-Z_]+}", makeProxy(metricsOptions, true))
|
||||
|
||||
metricsHandler := metrics.PrometheusHandler()
|
||||
r.Handle("/metrics", metricsHandler)
|
||||
|
Reference in New Issue
Block a user