mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
Removed "name" from route, only need path.
This commit is contained in:
16
api/ifaces/app.go
Normal file
16
api/ifaces/app.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package ifaces
|
||||
|
||||
import "net/http"
|
||||
|
||||
type App interface {
|
||||
Name() string
|
||||
Routes() Route
|
||||
Validate() error
|
||||
}
|
||||
|
||||
type Route interface {
|
||||
// AppName() string `json:"appname"`
|
||||
Path() string
|
||||
Image() string
|
||||
Headers() http.Header
|
||||
}
|
||||
Reference in New Issue
Block a user