mirror of
https://github.com/openfaas/faas.git
synced 2025-06-18 03:56:37 +00:00
Stack 1 (#4)
* - Extend stack to include a test function * - Allow _ char in routes * - Let Dockerfile shrink by coming from alpine * Update build.sh * Document stack deploy * Update README.md * fix port in README (#3)
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