Implement initial login functionality
This commit is contained in:
parent
a3bd0db78c
commit
3aa79b0d23
36 changed files with 908 additions and 70 deletions
|
|
@ -5,13 +5,13 @@ import (
|
|||
"net/http"
|
||||
)
|
||||
|
||||
// Servable is a component that is servable
|
||||
type Servable interface {
|
||||
// Routeable is a component that is servable
|
||||
type Routeable interface {
|
||||
Component
|
||||
|
||||
// Routes returns the routes served by this servable
|
||||
Routes() []string
|
||||
|
||||
// Handler returns the handler for the requested route
|
||||
Handler(ctx context.Context, route string) (http.Handler, error)
|
||||
// HandleRoute returns the handler for the requested route
|
||||
HandleRoute(ctx context.Context, route string) (http.Handler, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue