20 lines
449 B
Vue
20 lines
449 B
Vue
<script setup lang="ts">
|
|
import storyForm from "~/components/story/create/storyform.vue";
|
|
import { defaultStory } from "~/lib/client/types/form/story";
|
|
definePageMeta({
|
|
middleware: ["auth"],
|
|
});
|
|
useHead({
|
|
title: "Post a new Story",
|
|
});
|
|
</script>
|
|
<template>
|
|
<a-typography-title> Post a new Story </a-typography-title>
|
|
<story-form
|
|
endpoint-method="post"
|
|
:can-draft="true"
|
|
:data="defaultStory"
|
|
endpoint="/story/new"
|
|
/>
|
|
</template>
|