From e84f57692aada4475227c2f5b97d189c778f0fcd Mon Sep 17 00:00:00 2001 From: deranjer Date: Mon, 27 Dec 2021 22:51:16 -0500 Subject: [PATCH] react-router frontend, fixing backend issues, adding /api --- Taskfile.yml | 2 +- app/log/goInventorize.log | 366 ++++-------------- ...st - Unreal Editor.png => Location1_0.png} | Bin .../{testCover.png => Location1_1.png} | Bin ...tage_Sword_LHL.png => Location1_cover.png} | Bin database.go | 102 +++-- frontend/package-lock.json | 34 +- frontend/package.json | 3 +- frontend/src/App.js | 34 +- frontend/src/components/SideBar.js | 15 +- frontend/src/components/pages/Locations.js | 7 +- frontend/src/components/pages/RoomsPage.js | 71 ++++ frontend/src/index.js | 7 +- frontend/src/services/backend-api.js | 9 +- handlers.go | 79 ++-- main.go | 12 +- 16 files changed, 370 insertions(+), 371 deletions(-) rename app/photos/locations/Location1/{2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png => Location1_0.png} (100%) rename app/photos/locations/Location1/{testCover.png => Location1_1.png} (100%) rename app/photos/locations/Location1/{2020-05-23 11_08_43-Montage_Sword_LHL.png => Location1_cover.png} (100%) create mode 100644 frontend/src/components/pages/RoomsPage.js diff --git a/Taskfile.yml b/Taskfile.yml index f1441ff..8acacfb 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -83,7 +83,7 @@ tasks: GI_DEVELOPMENT: false # TZ: "America/New_York" cmds: - - fiber dev + - fiber dev -D="app,frontend,dist" run-all: deps: diff --git a/app/log/goInventorize.log b/app/log/goInventorize.log index bc73f94..0a05187 100644 --- a/app/log/goInventorize.log +++ b/app/log/goInventorize.log @@ -1,284 +1,82 @@ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/2.2faaed84.chunk.js​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/main.35260e4f.chunk.js​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/2.2faaed84.chunk.js.map​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/main.35260e4f.chunk.js.map​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"401", "method":"GET", "path":"//config​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/favicon.ico​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/manifest.json​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/logo192.png​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"404", "method":"GET", "path":"//config​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/2.2faaed84.chunk.js​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/main.35260e4f.chunk.js​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/2.2faaed84.chunk.js.map​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/main.35260e4f.chunk.js.map​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"404", "method":"GET", "path":"//config​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/favicon.ico​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/manifest.json​"}​ -{"logtype":"webserver", "pid":"1532", "requestid":"", "status":"200", "method":"GET", "path":"/logo192.png​"}​ -{"level":"info","time":"2021-08-28T22:36:36-04:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-08-28T22:36:36-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-08-28T22:36:36-04:00","message":"Database and Config loaded, starting webserver..."} -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/main.ebe69ffb.chunk.js​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/2.2faaed84.chunk.js​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/2.2faaed84.chunk.js.map​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/main.ebe69ffb.chunk.js.map​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/favicon.ico​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/manifest.json​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/logo192.png​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/2.2faaed84.chunk.js​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/main.ebe69ffb.chunk.js​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/2.2faaed84.chunk.js.map​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/static/js/main.ebe69ffb.chunk.js.map​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/favicon.ico​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/manifest.json​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/logo192.png​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"27380", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"info","time":"2021-08-29T15:05:54-04:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-08-29T15:05:54-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-08-29T15:05:54-04:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-08-29T15:05:55-04:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-08-29T15:05:55-04:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-08-29T15:05:55-04:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-13T18:34:18-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-13T18:34:18-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-13T18:34:18-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-13T22:11:00-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-13T22:11:00-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-13T22:11:00-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-13T22:11:01-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-13T22:11:01-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-13T22:11:01-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-14T14:26:43-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-14T14:26:43-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-14T14:26:43-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-14T14:26:46-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-14T14:26:46-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-14T14:26:46-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-14T18:43:36-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-14T18:43:36-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-14T18:43:36-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-14T20:29:03-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-14T20:29:03-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-14T20:29:03-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-14T20:32:07-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-14T20:32:07-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-14T20:32:07-05:00","message":"Database and Config loaded, starting webserver..."} -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"30264", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"info","time":"2021-11-14T21:04:27-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-14T21:04:27-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-14T21:04:27-05:00","message":"Database and Config loaded, starting webserver..."} -{"logtype":"webserver", "pid":"22768", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"22768", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"22768", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"22768", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"info","time":"2021-11-14T21:25:49-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-14T21:25:49-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-14T21:25:49-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-11-14T21:25:50-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-11-14T21:25:50-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-11-14T21:25:50-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-12-08T21:33:50-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T21:33:50-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T21:33:50-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-12-08T21:43:38-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T21:43:38-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:true UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T21:43:38-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-12-08T22:23:34-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T22:23:34-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T22:23:34-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-12-08T22:24:24-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T22:24:24-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T22:24:24-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-12-08T22:25:14-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T22:25:14-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T22:25:14-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-12-08T22:26:43-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T22:26:43-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T22:26:43-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-12-08T22:28:59-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T22:28:59-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T22:28:59-05:00","message":"Database and Config loaded, starting webserver..."} -{"level":"info","time":"2021-12-08T22:31:41-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T22:31:41-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T22:31:41-05:00","message":"Database and Config loaded, starting webserver..."} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-08T22:32:18-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:34:40-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:41:06-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:41:32-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:41:48-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:50:22-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:50:32-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:50:51-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:54:01-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/Location1/testCover.png​"}​ -{"logtype":"webserver", "pid":"9108", "requestid":"", "status":"200", "method":"GET", "path":"/favicon.ico​"}​ -{"level":"info","time":"2021-12-08T22:54:57-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-08T22:54:57-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-08T22:54:57-05:00","message":"Database and Config loaded, starting webserver..."} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/photos/locations/Location1/testCover.png​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/favicon.ico​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-08T22:55:08-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:56:17-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-08T22:56:23-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T22:58:22-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-08T22:58:26-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T23:01:05-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-08T23:01:39-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T23:03:09-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T23:04:22-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T23:04:45-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-08T23:06:26-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"500", "method":"GET", "path":"/photos/locations//​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"304", "method":"GET", "path":"/photos/locations/Location1/testCover.png​"}​ -{"level":"debug","time":"2021-12-08T23:07:31-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"500", "method":"GET", "path":"/photos/locations//​"}​ -{"level":"debug","time":"2021-12-08T23:07:55-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-08T23:08:02-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-08T23:10:33-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"67756", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"info","time":"2021-12-09T18:40:09-05:00","message":"Configuration loaded successfully..."} -{"level":"debug","time":"2021-12-09T18:40:09-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} -{"level":"info","time":"2021-12-09T18:40:09-05:00","message":"Database and Config loaded, starting webserver..."} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-09T18:46:50-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-09T18:47:19-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-09T18:48:41-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-09T18:50:59-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-09T18:51:20-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-09T18:51:42-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-09T18:52:35-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-09T18:55:19-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-09T18:55:53-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"500", "method":"GET", "path":"/photos/locations//​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"304", "method":"GET", "path":"/photos/locations/Location1/testCover.png​"}​ -{"level":"debug","time":"2021-12-09T18:56:26-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"500", "method":"GET", "path":"/photos/locations//​"}​ -{"level":"debug","time":"2021-12-09T18:57:03-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-09T18:57:56-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"500", "method":"GET", "path":"/photos/locations//​"}​ -{"level":"debug","time":"2021-12-09T18:58:43-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"level":"debug","time":"2021-12-09T18:59:26-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-10T23:01:45-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"304", "method":"GET", "path":"/photos/locations/Location1/testCover.png​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-10T23:19:09-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"level":"debug","time":"2021-12-10T23:19:38-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"level":"debug","time":"2021-12-10T23:19:40-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/config​"}​ -{"level":"debug","time":"2021-12-10T23:20:15-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"level":"debug","time":"2021-12-10T23:20:40-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"level":"debug","time":"2021-12-10T23:20:42-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"level":"debug","time":"2021-12-10T23:20:56-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ -{"level":"debug","time":"2021-12-10T23:21:01-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png Photos:[./app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png ./app/photos/locations/Location1/2020-05-22 20_57_56-Wwise.png] Rooms:[] Notes:Notes for my location!}]"} -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"200", "method":"GET", "path":"/locations​"}​ -{"logtype":"webserver", "pid":"69960", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/testName2/testString2​"}​ +{"level":"debug","time":"2021-12-27T21:10:13-05:00","message":"Returning Locations: []"} +{"logtype":"webserver", "pid":"22376", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"level":"info","time":"2021-12-27T21:12:14-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:12:14-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:12:14-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"info","time":"2021-12-27T21:12:18-05:00","message":"Adding new location to database: %!(EXTRA main.Location={0 Location1 ./app/photos/locations/Location1/Location1_cover.png [./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] [] Notes for my location!})"} +{"level":"debug","time":"2021-12-27T21:12:18-05:00","message":"Adding new location: {0 Location1 ./app/photos/locations/Location1/Location1_cover.png [./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] [] Notes for my location!}"} +{"logtype":"webserver", "pid":"3604", "requestid":"", "status":"200", "method":"POST", "path":"/api/locations/new​"}​ +{"level":"debug","time":"2021-12-27T21:12:47-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"3604", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"level":"info","time":"2021-12-27T21:13:38-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:13:38-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:13:38-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"debug","time":"2021-12-27T21:13:42-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"level":"debug","time":"2021-12-27T21:14:11-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/config​"}​ +{"level":"debug","time":"2021-12-27T21:14:12-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"404", "method":"GET", "path":"/api/photos/locations/Location1/app/photos/locations/Location1/Location1_cover.png​"}​ +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/config​"}​ +{"level":"debug","time":"2021-12-27T21:18:27-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"404", "method":"GET", "path":"/api/photos/locations/Location1/app/photos/locations/Location1/Location1_cover.png​"}​ +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/config​"}​ +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/config​"}​ +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/config​"}​ +{"level":"debug","time":"2021-12-27T21:25:05-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"logtype":"webserver", "pid":"18424", "requestid":"", "status":"404", "method":"GET", "path":"/photos/locations/Location1/app/photos/locations/Location1/Location1_cover.png​"}​ +{"level":"info","time":"2021-12-27T21:26:49-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:26:49-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:26:49-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"info","time":"2021-12-27T21:27:27-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:27:27-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:27:27-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"info","time":"2021-12-27T21:30:56-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:30:56-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:30:56-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"info","time":"2021-12-27T21:33:30-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:33:30-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:33:30-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"info","time":"2021-12-27T21:34:24-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:34:24-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:34:24-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"error","time":"2021-12-27T21:34:31-05:00","message":"Unable to fetch all rooms at location: field Location not found"} +{"level":"error","error":"field Location not found","time":"2021-12-27T21:34:31-05:00","message":"Unable to fetch location with id: 1"} +{"level":"info","time":"2021-12-27T21:34:31-05:00","message":"Deleting location from database: %!(EXTRA main.Location={0 [] [] })"} +{"level":"error","time":"2021-12-27T21:34:31-05:00","message":"Unable to delete location from database: {%!s(int=0) [] [] } error: not found "} +{"level":"error","error":"not found","time":"2021-12-27T21:34:31-05:00","message":"Unable to delete location with id: 1"} +{"logtype":"webserver", "pid":"20316", "requestid":"", "status":"200", "method":"DELETE", "path":"/api/locations/1​"}​ +{"level":"info","time":"2021-12-27T21:34:47-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:34:47-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:34:47-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"debug","time":"2021-12-27T21:34:48-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"28720", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"level":"error","time":"2021-12-27T21:35:02-05:00","message":"Unable to fetch all rooms at location: field Location not found"} +{"level":"error","error":"field Location not found","time":"2021-12-27T21:35:02-05:00","message":"Unable to fetch location with id: 1"} +{"level":"info","time":"2021-12-27T21:35:02-05:00","message":"Deleting location from database: %!(EXTRA main.Location={0 [] [] })"} +{"level":"error","time":"2021-12-27T21:35:02-05:00","message":"Unable to delete location from database: {%!s(int=0) [] [] } error: not found "} +{"level":"error","error":"not found","time":"2021-12-27T21:35:02-05:00","message":"Unable to delete location with id: 1"} +{"logtype":"webserver", "pid":"28720", "requestid":"", "status":"200", "method":"DELETE", "path":"/api/locations/1​"}​ +{"level":"debug","time":"2021-12-27T21:35:06-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"28720", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"level":"info","time":"2021-12-27T21:36:13-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:36:13-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:36:13-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"error","time":"2021-12-27T21:36:15-05:00","message":"Unable to fetch all rooms at location: field Location not found"} +{"level":"error","error":"field Location not found","time":"2021-12-27T21:36:15-05:00","message":"Unable to fetch location with id: 1"} +{"logtype":"webserver", "pid":"21240", "requestid":"", "status":"500", "method":"DELETE", "path":"/api/locations/1​"}​ +{"level":"info","time":"2021-12-27T21:37:30-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:37:30-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:37:30-05:00","message":"Database and Config loaded, starting webserver..."} +{"level":"error","time":"2021-12-27T21:38:18-05:00","message":"Unable to fetch all rooms at location: field Location not found"} +{"logtype":"webserver", "pid":"20368", "requestid":"", "status":"500", "method":"GET", "path":"/api/locations/1​"}​ +{"level":"debug","time":"2021-12-27T21:38:46-05:00","message":"Returning Locations: [{ID:1 Name:Location1 Description: CoverPhoto:./app/photos/locations/Location1/Location1_cover.png Photos:[./app/photos/locations/Location1/Location1_0.png ./app/photos/locations/Location1/Location1_1.png] Rooms:[] Notes:Notes for my location!}]"} +{"logtype":"webserver", "pid":"20368", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations​"}​ +{"level":"info","time":"2021-12-27T21:40:29-05:00","message":"Configuration loaded successfully..."} +{"level":"debug","time":"2021-12-27T21:40:29-05:00","message":"{Timezone:America/New_York Server:{Port:3500 LocationPhotoDir:./app/photos/locations/} Logger:{Level:debug LoggingFile:./app/log/goInventorize.log} Authentication:{BasicAuth:false UserName:admin Password:password} Development:false}"} +{"level":"info","time":"2021-12-27T21:40:29-05:00","message":"Database and Config loaded, starting webserver..."} +{"logtype":"webserver", "pid":"20308", "requestid":"", "status":"200", "method":"GET", "path":"/api/locations/1​"}​ diff --git a/app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png b/app/photos/locations/Location1/Location1_0.png similarity index 100% rename from app/photos/locations/Location1/2020-05-22 22_47_24-ForlornOutcast - Unreal Editor.png rename to app/photos/locations/Location1/Location1_0.png diff --git a/app/photos/locations/Location1/testCover.png b/app/photos/locations/Location1/Location1_1.png similarity index 100% rename from app/photos/locations/Location1/testCover.png rename to app/photos/locations/Location1/Location1_1.png diff --git a/app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png b/app/photos/locations/Location1/Location1_cover.png similarity index 100% rename from app/photos/locations/Location1/2020-05-23 11_08_43-Montage_Sword_LHL.png rename to app/photos/locations/Location1/Location1_cover.png diff --git a/database.go b/database.go index 473a35d..408e862 100644 --- a/database.go +++ b/database.go @@ -28,12 +28,22 @@ type Room struct { Notes string } -// Item is contained inside a room +// Cabinet is a containerized area in a room +type Cabinet struct { + ID int `storm:"id, increment"` + RoomID int // Room ID that the cabinet is assigned to + CoverPhoto string // A "Cover photo" for this item + Name string + Notes string +} + +// Item is contained inside a room or cabinet type Item struct { ID int `storm:"id, increment"` RoomID int // Room ID that item is assigned to CoverPhoto string // A "cover photo" for the item Photos []string // A list of additional photos for the room + Count int // If item has duplicates Name string Product string Serial string @@ -61,23 +71,12 @@ func (s *Server) AddLocation(loc Location) error { return nil } -// AddRoom adds a room to a location -func (s *Server) AddRoom(room Room) error { - s.Log.Info().Msgf("Adding new room to location: %s", room) - err := s.Database.Save(&room) +// DeleteLocation deletes a location by ID +func (s *Server) DeleteLocation(loc Location) error { + s.Log.Info().Msgf("Deleting location from database: ", loc) + err := s.Database.DeleteStruct(&loc) if err != nil { - s.Log.Error().Msgf("Unable to add new room to database: %s error: %s", room, err) - return err - } - return nil -} - -// AddItem adds an item to a room -func (s *Server) AddItem(item Item) error { - s.Log.Info().Msgf("Adding new item to room: ", item) - err := s.Database.Save(&item) - if err != nil { - s.Log.Error().Msgf("Unable to add new item to room: %s error: %s", item, err) + s.Log.Error().Msgf("Unable to delete location from database: %s error: %s ", loc, err) return err } return nil @@ -93,24 +92,75 @@ func (s *Server) GetLocations() (locations []Location, err error) { return locations, nil } -// GetRoomsAtLocation fetches all the rooms assigned to a location by location ID -func (s *Server) GetRoomsAtLocation(locID int) error { - var rooms []Room - err := s.Database.Find("Location", locID, &rooms) +// GetLocation fetches a single location +func (s *Server) GetLocation(locID int) (location Location, err error) { + err = s.Database.One("ID", locID, &location) if err != nil { s.Log.Error().Msgf("Unable to fetch all rooms at location: %s", err) + return location, err + } + return location, nil +} + +// AddRoom adds a room to a location +func (s *Server) AddRoom(room Room) error { + s.Log.Info().Msgf("Adding new room to location: %s", room) + err := s.Database.Save(&room) + if err != nil { + s.Log.Error().Msgf("Unable to add new room to database: %s error: %s", room, err) return err } return nil } -// GetItemsInRoom fetches all of the items assigned to a room -func (s *Server) GetItemsInRoom(roomID int) error { - var items []Item - err := s.Database.Find("Room", roomID, &items) +// GetAllRooms gets all of the rooms +func (s *Server) GetAllRooms() (rooms []Room, err error) { + s.Log.Info().Msg("Getting all Rooms") + err = s.Database.All(&rooms) if err != nil { - s.Log.Error().Msgf("Unable to fetch all rooms at location: %s", err) + s.Log.Error().Msgf("Unable to fetch all room with error: %s", err) + return rooms, err + } + return rooms, nil +} + +// AddItem adds an item to a room +func (s *Server) AddItem(item Item) error { + s.Log.Info().Msgf("Adding new item to room: ", item) + err := s.Database.Save(&item) + if err != nil { + s.Log.Error().Msgf("Unable to add new item to room: %s error: %s", item, err) return err } return nil } + +// GetRoomsAtLocation fetches all the rooms assigned to a location by location ID +func (s *Server) GetRoomsAtLocation(locID int) (rooms []Room, err error) { + err = s.Database.Find("LocationID", locID, &rooms) + if err != nil { + s.Log.Error().Msgf("Unable to fetch all rooms at location: %s", err) + return nil, err + } + return rooms, nil +} + +// GetCabinetsInRoom fetches all of the cabinets assigned to a room +func (s *Server) GetCabinetsInRoom(roomID int) (cabinets []Cabinet, err error) { + err = s.Database.Find("Room", roomID, &cabinets) + if err != nil { + s.Log.Error().Msgf("Unable to fetch all cabinets in room: %s", err) + return nil, err + } + return cabinets, nil +} + +// GetItemsInRoom fetches all of the items assigned to a room +func (s *Server) GetItemsInRoom(roomID int) (items []Item, err error) { + err = s.Database.Find("Room", roomID, &items) + if err != nil { + s.Log.Error().Msgf("Unable to fetch all items in room: %s", err) + return nil, err + } + return items, nil +} diff --git a/frontend/package-lock.json b/frontend/package-lock.json index f4e6bac..6e958e0 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8000,9 +8000,9 @@ "integrity": "sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==" }, "history": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/history/-/history-5.1.0.tgz", - "integrity": "sha512-zPuQgPacm2vH2xdORvGGz1wQMuHSIB56yNAy5FnLuwOwgSYyPKptJtcMm6Ev+hRGeS+GzhbmRacHzvlESbFwDg==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/history/-/history-5.2.0.tgz", + "integrity": "sha512-uPSF6lAJb3nSePJ43hN3eKj1dTWpN9gMod0ZssbFTIsen+WehTmEadgL+kg78xLJFdRfrrC//SavDzmRVdE+Ig==", "requires": { "@babel/runtime": "^7.7.6" } @@ -14161,20 +14161,30 @@ "integrity": "sha512-X8jZHc7nCMjaCqoU+V2I0cOhNW+QMBwSUkeXnTi8IPe6zaRWfn60ZzvFDZqWPfmSJfjub7dDW1SP0jaHWLu/hg==" }, "react-router": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.0.2.tgz", - "integrity": "sha512-8/Wm3Ed8t7TuedXjAvV39+c8j0vwrI5qVsYqjFr5WkJjsJpEvNSoLRUbtqSEYzqaTUj1IV+sbPJxvO+accvU0Q==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.2.1.tgz", + "integrity": "sha512-2fG0udBtxou9lXtK97eJeET2ki5//UWfQSl1rlJ7quwe6jrktK9FCCc8dQb5QY6jAv3jua8bBQRhhDOM/kVRsg==", "requires": { - "history": "^5.1.0" + "history": "^5.2.0" + }, + "dependencies": { + "history": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/history/-/history-5.2.0.tgz", + "integrity": "sha512-uPSF6lAJb3nSePJ43hN3eKj1dTWpN9gMod0ZssbFTIsen+WehTmEadgL+kg78xLJFdRfrrC//SavDzmRVdE+Ig==", + "requires": { + "@babel/runtime": "^7.7.6" + } + } } }, "react-router-dom": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.0.2.tgz", - "integrity": "sha512-cOpJ4B6raFutr0EG8O/M2fEoyQmwvZWomf1c6W2YXBZuFBx8oTk/zqjXghwScyhfrtnt0lANXV2182NQblRxFA==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.2.1.tgz", + "integrity": "sha512-I6Zax+/TH/cZMDpj3/4Fl2eaNdcvoxxHoH1tYOREsQ22OKDYofGebrNm6CTPUcvLvZm63NL/vzCYdjf9CUhqmA==", "requires": { - "history": "^5.1.0", - "react-router": "6.0.2" + "history": "^5.2.0", + "react-router": "6.2.1" } }, "react-scripts": { diff --git a/frontend/package.json b/frontend/package.json index 3b67d70..a84bd0a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -18,7 +18,8 @@ "react-dom": "^17.0.2", "react-icons": "^4.3.1", "react-jss": "^10.9.0", - "react-router-dom": "^6.0.2", + "react-router": "^6.2.1", + "react-router-dom": "^6.2.1", "react-scripts": "4.0.3", "web-vitals": "^2.1.2" }, diff --git a/frontend/src/App.js b/frontend/src/App.js index 007ec48..489593c 100644 --- a/frontend/src/App.js +++ b/frontend/src/App.js @@ -1,11 +1,13 @@ import React, {useState, useEffect, createContext} from 'react'; import HomePage from './components/pages/HomePage'; -import Locations from './components/pages/Locations' +import Locations from './components/pages/Locations'; +import RoomsPage from './components/pages/RoomsPage'; +import { Routes, Route, useNavigate } from "react-router-dom"; import { Modal, Button, Text, Group, TextInput, Loader, AppShell } from '@mantine/core'; import { useDebouncedValue, useLocalStorageValue } from '@mantine/hooks'; import { useNotifications } from '@mantine/notifications'; -import { backendAPI } from './services/backend-api'; +import { backendAPI, defaultURLS } from './services/backend-api'; import SideBar from './components/SideBar'; @@ -21,19 +23,22 @@ function App() { // Main nav/sidebar appshell openend const [shellOpened, setShellOpened] = useState(false) const [isLoading, setIsLoading] = useState(true) - const [currentPage, setCurrentPage] = useState("home") + const [currentPage, setCurrentPage] = useState({"path": "home", "id": -1}) const [serverConfig, setServerConfig] = useState({}) const notifications = useNotifications(); + const navigate = useNavigate(); useEffect(() => { + navigate("/")// Reset to homepage on new load anywhere in the app setIsLoading(true) async function fetchSettings() { backendAPI.get('/config').then(results => { - results.data.baseURL = results.config.baseURL + // console.log("FULL RESULTS: ", results.config.baseURL) + results.data.baseURL = defaultURLS.baseURL console.log("CONFIG: ", results.data) setServerConfig(results.data) notifications.showNotification({ @@ -58,14 +63,22 @@ function App() { }, []) + useEffect(() => { + console.log("Page Change!", currentPage) + + }, [currentPage]) + function showPage() { - switch (currentPage) { + switch (currentPage.path) { case "home": return case "locations": - return - + console.log("RETURNING LOCATIONS: ", currentPage) + return + case "rooms": + console.log("RETURNING ROOMS: ", currentPage) + return default: break; } @@ -80,7 +93,12 @@ function App() { navbar={} header={} > - {showPage()} + + } /> + } /> + } /> + + diff --git a/frontend/src/components/SideBar.js b/frontend/src/components/SideBar.js index a0e2c96..c6e5c1c 100644 --- a/frontend/src/components/SideBar.js +++ b/frontend/src/components/SideBar.js @@ -1,5 +1,6 @@ import React, {useState } from 'react'; import { Navbar, Text, Group, ThemeIcon, Button, UnstyledButton } from '@mantine/core'; +import { Link } from 'react-router-dom'; import { createStyles } from '@mantine/styles'; import { BsMap } from 'react-icons/bs' @@ -37,10 +38,6 @@ function SideBar(props) { const { classes } = useStyles(); const [activePage, setActivePage] = useState("") - function handlePageChange(page) { - props.setCurrentPage(page) - setActivePage(page) - } return (