forked from fwickert/VirtualTeacherGenAIDemo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 404 response type and refactor async handling
Updated UserController to include 404 response type for Get method. Refactored AuthenticatedApp in App.tsx to use Promise-based syntax instead of async/await. Moved useEffect hook to the end of the function and adjusted fetchUserRole to call createUserIfNotExists on 404 status.
- Loading branch information
Showing
2 changed files
with
47 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters