The Admin Section

Learn how to create and admin section and move over the related code.

The current project structure can be improved by moving the “add new post” form to an admin page. This will leave the “/blog” page free to display the posts. In addition, the admin page can also be extended to update and delete posts.

The admin.vue file

The first step is to add a new admin.vue file to the pages directory:

Get hands-on with 1200+ tech skills courses.