Migrate to new follows storage
This commit is contained in:
21
arn/User.init.go
Normal file
21
arn/User.init.go
Normal file
@ -0,0 +1,21 @@
|
||||
package arn
|
||||
|
||||
import "github.com/aerogo/api"
|
||||
|
||||
// Register data lists.
|
||||
func init() {
|
||||
DataLists["genders"] = []*Option{
|
||||
// &Option{"", "Prefer not to say"},
|
||||
{"male", "Male"},
|
||||
{"female", "Female"},
|
||||
}
|
||||
|
||||
// Actions
|
||||
API.RegisterActions("User", []*api.Action{
|
||||
// Add follow
|
||||
FollowAction(),
|
||||
|
||||
// Remove follow
|
||||
UnfollowAction(),
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user