mirror of
https://github.com/documize/community.git
synced 2025-07-22 22:59:43 +02:00
major code repair from old to new API -- WIP
This commit is contained in:
parent
25b576f861
commit
792c3e2ce8
46 changed files with 3403 additions and 171 deletions
|
@ -18,6 +18,12 @@ import (
|
|||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
// Param returns the requested paramater from route request.
|
||||
func Param(r *http.Request, p string) string {
|
||||
params := mux.Vars(r)
|
||||
return params[p]
|
||||
}
|
||||
|
||||
// Params returns the paramaters from route request.
|
||||
func Params(r *http.Request) map[string]string {
|
||||
return mux.Vars(r)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue