mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-14 07:19:02 +00:00
Some work on permissions (lacks tests)
This commit is contained in:
@@ -15,6 +15,11 @@ import (
|
||||
"strconv"
|
||||
)
|
||||
|
||||
type SessionContext struct {
|
||||
Manager *storage.Manager
|
||||
SessionCookie *http.Cookie
|
||||
}
|
||||
|
||||
func Post(path string, x interface{}, worker *storage.Worker) *http.Response {
|
||||
|
||||
body, err := json.Marshal(x)
|
||||
|
||||
Reference in New Issue
Block a user