KeystoneJS Admin UI App
A KeystoneJS App which provides an Admin UI for content management.
Usage
const { Keystone } = require('@keystone-alpha/keystone');
const { GraphQLApp } = require('@keystone-alpha/app-graphql');
const { AdminUIApp } = require('@keystone-alpha/app-admin-ui');
const authStrategy = keystone.createAuthStrategy({ ... });
...
module.exports = {
new Keystone(),
apps: [
new GraphQLApp(),
new AdminUIApp({
adminPath: '/admin',
authStrategy,
}),
],
};
Config
Option | Type | Default | Required | Description |
---|---|---|---|---|
adminPath |
String |
/admin |
false |
The path of the Admin UI. |
apiPath |
String |
/admin/api |
false |
The path of the API provided to the Admin UI. |
graphiqlPath |
String |
/admin/api |
false |
The path of the graphiql app, an in-browser IDE for exploring GraphQL. |
authStrategy |
Object |
null |
false |
See Authentication Guides |
pages |
Array |
null |
false |
|
enableDefaultRoute |
Bool |
false |
false |
If enabled, the path of the Admin UI app will be set to / . |
schemaName |
String |
public |
false |