refactor: call database functions from app.Server.Database instead of directly from db

This commit is contained in:
2024-08-19 21:00:46 +07:00
parent 6a183f2c4e
commit fa2f4e8a87
18 changed files with 69 additions and 63 deletions

12
routes/admin/routes.go Normal file
View File

@ -0,0 +1,12 @@
package admin
import "net/http"
func SetupRoutes() *http.ServeMux {
handler := http.NewServeMux()
handler.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, World!"))
return
})
return handler
}

View File

@ -1,4 +1,4 @@
package routes
package client
import (
googleOauthHandler "github.com/fossyy/filekeeper/handler/auth/google"