+The majority of the routes in this category are going to be prefixed with `/api`. You can tell specifically by looking at the route, it will have this argument ` current_user: int = Depends(oauth2.get_current_user)`, meaning that the route depends on an authorized user and won't function without one. Oauth2 is doing most of the heavy lifting in this case. It checks the request's Header for a particualr key/value pair. The key it is searching for is `Authorization`, and the value is the token type (bearer) and the actual token, `Bearer {my.jwt.token}`. This form of authorization applies to all create, update, and delete nodes.
0 commit comments