You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that the api endpoints can be accessed easily from every host in the local network; for example accessing the history on http://HOST:8840/api/history/ is easy, we also get to know the ID field and this could be used on the other api endpoints.
I saw in the discussion that authentication, for now, isn't supported, however I think that starting to make the app more secure is important and could make the app more trusted.
What should change
Frontend
There are two api calls made on the frontend, inside index.js:
There should be some endpoint exposed that internally makes requests to those api endpoints, for example /load (or similar) could be used for /api/all; I am still not sure about editForm.
I found that the api endpoints can be accessed easily from every host in the local network; for example accessing the history on
http://HOST:8840/api/history/
is easy, we also get to know theID
field and this could be used on the other api endpoints.I saw in the discussion that authentication, for now, isn't supported, however I think that starting to make the app more secure is important and could make the app more trusted.
What should change
Frontend
There are two api calls made on the frontend, inside
index.js
:There should be some endpoint exposed that internally makes requests to those api endpoints, for example
/load
(or similar) could be used for/api/all
; I am still not sure abouteditForm
.Backend
Inside
/internal/web/web.gui
I am still not familiar with gin, however the Recover middleware could be combined with a custom
cors.New(cors.Config{...})
middleware in some way.The text was updated successfully, but these errors were encountered: