- docs/examples/blog: scaffolder output for acme.blog (make:plugin, make:model) in the root module, with a Post model, a fill allow-list and NewPost, the create migration and GET /api/blog/posts paginated through lagoon - short tests activate the plugin, check the route with surf, the fill allow-list and the migration order - docs/setup/porting-a-plugin.md: registration, model, migrations and routes sections with src= copies of the plugin - TestDocsRequiredPages requires setup/porting-a-plugin
36 lines
714 B
Go
36 lines
714 B
Go
// Code generated by summer make. DO NOT EDIT.
|
|
|
|
package blog
|
|
|
|
import (
|
|
"git.golem15.com/golem15/summercms/docs/examples/blog/models"
|
|
"git.golem15.com/golem15/summercms/docs/examples/blog/updates"
|
|
"git.golem15.com/golem15/summercms/modules/bonfire"
|
|
"git.golem15.com/golem15/summercms/modules/pact"
|
|
"github.com/go-gormigrate/gormigrate/v2"
|
|
)
|
|
|
|
func generatedModels() []any {
|
|
return []any{
|
|
&models.Post{},
|
|
}
|
|
}
|
|
|
|
func generatedMigrations() []*gormigrate.Migration {
|
|
return []*gormigrate.Migration{
|
|
updates.CreatePosts(),
|
|
}
|
|
}
|
|
|
|
func generatedCommands() []bonfire.Command {
|
|
return nil
|
|
}
|
|
|
|
func generatedJobs() []pact.Job {
|
|
return nil
|
|
}
|
|
|
|
func generatedAdminControllers() []pact.AdminController {
|
|
return nil
|
|
}
|