mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Middleware upgrade (#554)
* Adds root level middleware * Added todo * Better way for extensions to be added. * Bad conflict merge?
This commit is contained in:
3
main.go
3
main.go
@@ -4,12 +4,11 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/fnproject/fn/api/server"
|
||||
// EXTENSIONS: Add extension imports here or use `fn build-server`. Learn more: https://github.com/fnproject/fn/blob/master/docs/operating/extending.md
|
||||
)
|
||||
|
||||
func main() {
|
||||
ctx := context.Background()
|
||||
|
||||
funcServer := server.NewFromEnv(ctx)
|
||||
// Setup your custom extensions, listeners, etc here
|
||||
funcServer.Start(ctx)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user