mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 15:43:21 +00:00
command line args
This commit is contained in:
parent
436de7f687
commit
738e78c439
6 changed files with 110 additions and 74 deletions
|
@ -12,6 +12,10 @@ type Router struct {
|
|||
Context
|
||||
}
|
||||
|
||||
func NewRouter(context Context) *Router {
|
||||
return &Router{context}
|
||||
}
|
||||
|
||||
func (router Router) ServeHTTP(w http.ResponseWriter, r *http.Request) {
|
||||
m := r.Method
|
||||
u := r.RequestURI
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue