16 lines
249 B
TypeScript
16 lines
249 B
TypeScript
import type { CollectionConfig } from 'payload/types'
|
|
|
|
export const Posts: CollectionConfig = {
|
|
slug: 'posts',
|
|
access: {
|
|
create: () => false,
|
|
read: () => true,
|
|
},
|
|
fields: [
|
|
{
|
|
name: 'text',
|
|
type: 'text',
|
|
},
|
|
],
|
|
}
|