diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index f2d18a2..be86932 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -17,6 +17,9 @@ --> Form Example +
  • + Create Course +
  • diff --git a/src/router/index.js b/src/router/index.js index b699737..9b37944 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -5,6 +5,7 @@ import { createRouter, createWebHistory } from "vue-router"; import HomeView from "../views/HomeView.vue"; import FormView from "../views/FormView.vue"; import FetchView from "../views/FetchView.vue"; +import AdminCreateCourseView from "../views/AdminCreateCourseView.vue"; const router = createRouter({ // the history mode determines how vue router interacts with the url. @@ -35,6 +36,11 @@ const router = createRouter({ name: "fetch", component: FetchView, }, + { + path: "/admin/createcourse", + name: "admincreatecourse", + component: AdminCreateCourseView, + }, ], }); diff --git a/src/views/AdminCreateCourseView.vue b/src/views/AdminCreateCourseView.vue new file mode 100644 index 0000000..a568171 --- /dev/null +++ b/src/views/AdminCreateCourseView.vue @@ -0,0 +1,132 @@ + + +