mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-03 17:42:25 -06:00
start refactoring return codes from fedi endpoints, remove some cruft
This commit is contained in:
parent
c6044d0142
commit
47051a26d6
28 changed files with 346 additions and 291 deletions
|
|
@ -20,17 +20,14 @@ package publickey
|
|||
import (
|
||||
"net/http"
|
||||
|
||||
apiutil "code.superseriousbusiness.org/gotosocial/internal/api/util"
|
||||
|
||||
"code.superseriousbusiness.org/gotosocial/internal/processing"
|
||||
"code.superseriousbusiness.org/gotosocial/internal/uris"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
const (
|
||||
// UsernameKey is for account usernames.
|
||||
UsernameKey = "username"
|
||||
// PublicKeyPath is a path to a user's public key, for serving bare minimum AP representations.
|
||||
PublicKeyPath = "users/:" + UsernameKey + "/" + uris.PublicKeyPath
|
||||
)
|
||||
const PublicKeyPath = "users/:" + apiutil.UsernameKey + "/" + uris.PublicKeyPath
|
||||
|
||||
type Module struct {
|
||||
processor *processing.Processor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue