{{ errors.join(', ') }}
@@ -12,7 +12,7 @@
diff --git a/resources/js/Pages/register-view/register-view-component.ts b/resources/js/Pages/register-view/register-view-component.ts
index 1d90c94..19fa6fe 100644
--- a/resources/js/Pages/register-view/register-view-component.ts
+++ b/resources/js/Pages/register-view/register-view-component.ts
@@ -1,7 +1,7 @@
import { Component, Vue, Prop } from 'vue-facing-decorator';
import AuthLayout from '@/Layouts/Auth.vue';
// import { Inertia } from '@inertiajs/inertia';
-import { NButton } from 'naive-ui';
+// import { NButton } from 'naive-ui';
import { useForm, InertiaForm, router } from '@inertiajs/vue3';
import FormInput from '@/Components/FormInput.vue'; // @/Components/FormInput.vue'
// import { defineComponent, reactive } from 'vue';
@@ -42,7 +42,7 @@ export interface IErrorMessage {
},
name: 'RegisterViewComponent',
components: {
- NButton,
+ // NButton,
FormInput,
},
})
diff --git a/start/routes.ts b/start/routes.ts
index ce04ffa..11d88a1 100644
--- a/start/routes.ts
+++ b/start/routes.ts
@@ -183,3 +183,11 @@ Route.group(() => {
.prefix('submitter');
// .middleware(['auth', 'can:dataset-list,dataset-publish']);
// .middleware(['auth', 'is:submitter']);
+
+Route.group(() => {
+ Route.put('/dataset/:id/update', 'DatasetsController.update')
+ .as('editor.dataset.update')
+ .middleware(['auth', 'can:dataset-submit']);
+})
+.namespace('App/Controllers/Http/Editor')
+.prefix('editor');
\ No newline at end of file