Implement saving and loading for account data, currently a basic json file

This commit is contained in:
Marc Di Luzio 2020-05-31 19:15:57 +01:00
parent f1e6311366
commit 179dd3f984
11 changed files with 306 additions and 130 deletions

View file

@ -12,7 +12,7 @@ func TestHandleStatus(t *testing.T) {
request, _ := http.NewRequest(http.MethodGet, "/status", nil)
response := httptest.NewRecorder()
s := NewServer(8080)
s := NewServer()
s.Initialise()
s.HandleStatus(response, request)
@ -35,7 +35,7 @@ func TestHandleRegister(t *testing.T) {
request, _ := http.NewRequest(http.MethodPost, "/register", bytes.NewReader(b))
response := httptest.NewRecorder()
s := NewServer(8080)
s := NewServer()
s.Initialise()
s.HandleRegister(response, request)