Add GOTH stack CRM platform skeleton
- Go module with chi router, bcrypt - SQLite schema for 9 tables - Auth, Clients, Customers, Services, Scheduling, Payments, Q&A handlers - HTMX template layouts
This commit is contained in:
14
apps/go-crm/internal/handlers/setup.go
Normal file
14
apps/go-crm/internal/handlers/setup.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
"time"
|
||||
)
|
||||
|
||||
func SetupHandlers(db *sql.DB) {
|
||||
DB = db
|
||||
}
|
||||
|
||||
func getCurrentTimestamp() int64 {
|
||||
return time.Now().Unix()
|
||||
}
|
||||
Reference in New Issue
Block a user