- Go module with chi router, bcrypt - SQLite schema for 9 tables - Auth, Clients, Customers, Services, Scheduling, Payments, Q&A handlers - HTMX template layouts
14 lines
161 B
Go
14 lines
161 B
Go
package handlers
|
|
|
|
import (
|
|
"database/sql"
|
|
"time"
|
|
)
|
|
|
|
func SetupHandlers(db *sql.DB) {
|
|
DB = db
|
|
}
|
|
|
|
func getCurrentTimestamp() int64 {
|
|
return time.Now().Unix()
|
|
} |