mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-13 21:47:29 -06:00
add api/v1/instance info handler + instance model
This commit is contained in:
parent
0cbab627c7
commit
5b41a00e81
11 changed files with 222 additions and 22 deletions
|
|
@ -117,6 +117,11 @@ type DB interface {
|
|||
// This is needed for things like serving files that belong to the instance and not an individual user/account.
|
||||
CreateInstanceAccount() error
|
||||
|
||||
// CreateInstanceInstance creates an instance in the database with the same domain as the instance host value.
|
||||
// Ie., if the instance is hosted at 'example.org' the instance will have a domain of 'example.org'.
|
||||
// This is needed for things like serving instance information through /api/v1/instance
|
||||
CreateInstanceInstance() error
|
||||
|
||||
// GetAccountByUserID is a shortcut for the common action of fetching an account corresponding to a user ID.
|
||||
// The given account pointer will be set to the result of the query, whatever it is.
|
||||
// In case of no entries, a 'no entries' error will be returned
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue