Documentation ¶
Index ¶
- func CreateTodo(c *gin.Context)
- func DeleteTodoByID(c *gin.Context)
- func GetTodoByID(c *gin.Context)
- func GetTodos(c *gin.Context)
- func GetTodosByOwnerID(c *gin.Context)
- func GetUserByID(c *gin.Context)
- func GetUserByUsername(c *gin.Context)
- func LoginUser(c *gin.Context)
- func UpdateTodoByID(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTodos ¶
GetTodos returns all todos owned by the currently logged-in user. Actually, it returns all todos for now, but authorization will soon be implemented.
GET /todos
func GetUserByUsername ¶
GetUserByUsername returns a user given the username as a query parameter.
GET /users?username=:username GET /users is Forbidden
func LoginUser ¶
Is the user logged in?
GET /users/login
This is just a dummy endpoint which relies on the authentication middleware to handle login but informs the client whether user is logged in.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.