2020-07-24 22:10:50 +00:00
|
|
|
use Mix.Config
|
|
|
|
|
|
|
|
config :kaffy,
|
|
|
|
otp_app: :admin,
|
2021-03-19 19:32:18 +00:00
|
|
|
ecto_repo: Legendary.Admin.Repo,
|
2020-08-18 20:56:43 +00:00
|
|
|
extensions: [
|
2021-03-19 19:32:18 +00:00
|
|
|
Legendary.Admin.Kaffy.EditorExtension,
|
2020-08-18 20:56:43 +00:00
|
|
|
],
|
2021-03-19 19:32:18 +00:00
|
|
|
router: Legendary.Admin.Router,
|
|
|
|
resources: &Legendary.Admin.Kaffy.Config.create_resources/1
|
2020-07-24 22:10:50 +00:00
|
|
|
|
2021-03-19 19:32:18 +00:00
|
|
|
config :admin, Legendary.Admin,
|
2020-07-24 22:10:50 +00:00
|
|
|
resources: [
|
|
|
|
auth: [
|
2021-03-19 19:32:18 +00:00
|
|
|
name: "Legendary.Auth",
|
2020-07-24 22:10:50 +00:00
|
|
|
resources: [
|
2021-03-19 19:32:18 +00:00
|
|
|
user: [schema: Legendary.Auth.User, admin: Legendary.Auth.UserAdmin],
|
2020-07-24 22:10:50 +00:00
|
|
|
]
|
|
|
|
],
|
|
|
|
content: [
|
2021-03-19 19:32:18 +00:00
|
|
|
name: "Legendary.Content",
|
2020-07-24 22:10:50 +00:00
|
|
|
resources: [
|
2021-03-19 19:32:18 +00:00
|
|
|
post: [schema: Legendary.Content.Post, admin: Legendary.Content.PostAdmin, label: "Posts and Pages", id_column: :name],
|
|
|
|
comment: [schema: Legendary.Content.Comment, admin: Legendary.Content.CommentAdmin],
|
2020-07-24 22:10:50 +00:00
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|