Search⌘ K
AI Features

The Langman API

Explore how to structure Flask applications by separating game and authentication APIs. Understand managing multiple namespaces, using token authentication with HTTP requests, and organizing server files effectively to build secure APIs.

Application definitions

The updates for the methods have been completed, but with two different API namespaces, that is, games and auth, it now makes more sense to put the definition of the Flask application in its own file together with the before_request and teardown_request decorated methods. To do this, we put the game resources into a new file, game_api.py, and leave the App definition in app.py. This separation of pieces will ...