More work on the api. Also auth middleware stuff
More work on the placeholder functions for the Linstrom API Additionally, started work on a slightly more sophisticated authentication control system And ran `go generate` again
This commit is contained in:
parent
b9c95a0297
commit
873f52d64f
14 changed files with 637 additions and 300 deletions
41
server/apiLinstromAccounts.go
Normal file
41
server/apiLinstromAccounts.go
Normal file
|
@ -0,0 +1,41 @@
|
|||
package server
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/rs/zerolog/hlog"
|
||||
)
|
||||
|
||||
// No create account. That happens during passkey registration
|
||||
// and remote accounts are getting created at fetch time
|
||||
func linstromGetAccount(w http.ResponseWriter, r *http.Request) {
|
||||
store := StorageFromRequest(r)
|
||||
log := hlog.FromRequest(r)
|
||||
|
||||
}
|
||||
func linstromUpdateAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromDeleteAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
func linstromIsFollowingAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromFollowAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromUnfollowAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
func linstromIsBlockingAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromBlockAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromUnblockAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
func linstromIsMutedAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromMuteAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromUnmuteAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
func linstromReportAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromRetractReportAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
func linstromAdminAddRoleAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromAdminRemoveRoleAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromAdminWarnAccount(w http.ResponseWriter, r *http.Request) {}
|
||||
|
||||
func linstromGetRole(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromCreateRole(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromUpdateRole(w http.ResponseWriter, r *http.Request) {}
|
||||
func linstromDeleteRole(w http.ResponseWriter, r *http.Request) {}
|
Loading…
Add table
Add a link
Reference in a new issue