API login/register/delete-account, automatic db schema init

This commit is contained in:
ari melody 2024-09-23 00:57:23 +01:00
parent 1846203076
commit f7edece0af
Signed by: ari
GPG key ID: CF99829C92678188
11 changed files with 479 additions and 8 deletions

View file

@ -14,6 +14,12 @@ import (
func Handler() http.Handler {
mux := http.NewServeMux()
// ACCOUNT ENDPOINTS
mux.Handle("/v1/login", handleLogin())
mux.Handle("/v1/register", handleAccountRegistration())
mux.Handle("/v1/delete-account", handleDeleteAccount())
// ARTIST ENDPOINTS
mux.Handle("/v1/artist/", http.StripPrefix("/v1/artist", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {