Skip to content

Commit

Permalink
migrate to axios and fix error messages (#421)
Browse files Browse the repository at this point in the history
* migrate to axios and fix error messages

* Update application/frontend/src/pages/Deeplink/Deeplink.tsx

Co-authored-by: John Harvey <[email protected]>
Signed-off-by: Spyros <[email protected]>

---------

Signed-off-by: Spyros <[email protected]>
Co-authored-by: John Harvey <[email protected]>
  • Loading branch information
northdpole and john681611 committed Oct 28, 2023
1 parent 9643f87 commit 819cff8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/frontend/src/pages/Deeplink/Deeplink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const Deeplink = () => {
window.scrollTo(0, 0);
setLoading(true);
axios
.get(`${url}`)
.get(url)
.then(function (response) {
setError(null);
setData(response.data?.standard);
Expand Down
2 changes: 2 additions & 0 deletions application/web/web_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ def find_root_cres() -> Any:

@app.errorhandler(404)
def page_not_found(e) -> Any:
from pprint import pprint

return "Resource Not found", 404


Expand Down

0 comments on commit 819cff8

Please sign in to comment.