Added docs via swagger
This commit is contained in:
@ -8,6 +8,18 @@ import (
|
||||
|
||||
// GetListsByUser gets all lists a user owns
|
||||
func GetListsByUser(c echo.Context) error {
|
||||
// swagger:operation GET /lists lists getLists
|
||||
// ---
|
||||
// summary: Gets all lists owned by the current user
|
||||
// consumes:
|
||||
// - application/json
|
||||
// produces:
|
||||
// - application/json
|
||||
// responses:
|
||||
// "200":
|
||||
// "$ref": "#/responses/List"
|
||||
// "500":
|
||||
// "$ref": "#/responses/Message"
|
||||
|
||||
currentUser, err := models.GetCurrentUser(c)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user