Ability to add friends. Also, made a few helper functions.
This commit is contained in:
@@ -39,6 +39,10 @@ func Start(conf common.Conf, db *sql.DB) *gin.Engine {
|
||||
gv1.GET("/friends", Method(v1.FriendsGET, db, common.PrivilegeReadConfidential))
|
||||
gv1.GET("/friends/with/:id", Method(v1.FriendsWithGET, db, common.PrivilegeReadConfidential))
|
||||
|
||||
// Write privilege required
|
||||
gv1.POST("/friends/add", Method(v1.FriendsAddPOST, db, common.PrivilegeWrite))
|
||||
gv1.GET("/friends/add/:id", Method(v1.FriendsAddGET, db, common.PrivilegeWrite))
|
||||
|
||||
// M E T A
|
||||
// E T "wow thats so meta"
|
||||
// T E -- the one who said "wow that's so meta"
|
||||
|
Reference in New Issue
Block a user