refactor: call database functions from app.Server.Database instead of directly from db
This commit is contained in:
12
routes/admin/routes.go
Normal file
12
routes/admin/routes.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user