mirror of
https://github.com/volatiletech/authboss.git
synced 2024-11-24 08:42:17 +02:00
b33e47a97c
- Document more things - Remove module code - Remove callbacks code - Remove data makers, flash messages, and context providers in exchange for middlewares that use context (unwritten) - Move more implementations (responses, redirector, router) to defaults package - Rename key interfaces (again), Storer -> User, StoreLoader -> ServerStorer (opposite of ClientStateStorer) if this is the last time I rename these I'll be shocked
14 lines
276 B
Go
14 lines
276 B
Go
package authboss
|
|
|
|
import (
|
|
"net/http"
|
|
)
|
|
|
|
// Router can register routes to later be used by the web application
|
|
type Router interface {
|
|
http.Handler
|
|
Get(path string, handler http.Handler)
|
|
Post(path string, handler http.Handler)
|
|
Delete(path string, handler http.Handler)
|
|
}
|