An incomplete list of supported backend endpoints. See more in Configure REST API.
Users Endpoints
POST /api/users/login
POST /api/users/signup
GET /api/users/logged_in
Checks whether a user is currently logged in to the current client’s session. Uses cookie token.
Parameters
NONE
Returns
If logged in (200):
{
status: "success",
message: `'{user}' is logged in to this session.`,
body: {
loggedIn: true,
user: `{user}`
}
}
If not logged in (200):
{
status: "failure",
message: `No user is logged in to this session.`,
body: {
loggedIn: false,
user: null
}
}