17 lines
430 B
Go
17 lines
430 B
Go
package ptpl
|
|
|
|
import "bamort/registry"
|
|
|
|
// init self-registers the ptpl module with the central registry.
|
|
// main.go blank-imports this package to trigger this function.
|
|
func init() {
|
|
// Protected API routes (/api/ptpl/*).
|
|
registry.RegisterRoutes(RegisterRoutes)
|
|
|
|
// Public routes.
|
|
registry.RegisterPublicRoutes(RegisterPublicRoutes)
|
|
|
|
// Database migration for PtplItem model.
|
|
registry.RegisterMigration(MigrateStructure)
|
|
}
|