2021-05-31 18:36:35 +03:00
|
|
|
package list
|
|
|
|
|
2021-06-13 19:42:28 +03:00
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
2021-12-11 19:50:00 +03:00
|
|
|
"github.com/superseriousbusiness/gotosocial/internal/api"
|
2021-06-13 19:42:28 +03:00
|
|
|
)
|
2021-05-31 18:36:35 +03:00
|
|
|
|
|
|
|
// ListsGETHandler returns a list of lists created by/for the authed account
|
|
|
|
func (m *Module) ListsGETHandler(c *gin.Context) {
|
2021-12-11 19:50:00 +03:00
|
|
|
if _, err := api.NegotiateAccept(c, api.JSONAcceptHeaders...); err != nil {
|
|
|
|
c.JSON(http.StatusNotAcceptable, gin.H{"error": err.Error()})
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
2021-06-13 19:42:28 +03:00
|
|
|
c.JSON(http.StatusOK, []string{})
|
2021-05-31 18:36:35 +03:00
|
|
|
}
|