Remove EventTable in database, redesign frontend URL paths
This commit is contained in:
@@ -1,27 +1,50 @@
|
||||
import BasketPage from "@/pages/basketPage/index.vue"
|
||||
import BasketPage from "@/pages/misc/basketPage/index.vue"
|
||||
import HomePage from "@/pages/homePage/index.vue"
|
||||
import { adminRoutes } from "./admin.routes";
|
||||
import { accountRoutes } from "./account.routes";
|
||||
import { systemRoutes } from "./system.routes";
|
||||
import EventsPage from "@/pages/events/eventsPage/index.vue";
|
||||
import BandsPage from "@/pages/bands/bandsPage/index.vue"
|
||||
import BandDetailPage from "@/pages/bands/bandDetailPage/index.vue"
|
||||
import LocationsPage from "@/pages/locations/locationsPage/index.vue"
|
||||
import SearchPage from "@/pages/searchPage/index.vue"
|
||||
import BandDetailPage from "@/pages/events/bandDetailPage/index.vue"
|
||||
import LocationDetailPage from "@/pages/locations/locationDetailPage/index.vue"
|
||||
import TicketOrderPage from "@/pages/events/ticketOrderPage/index.vue"
|
||||
import SearchPage from "@/pages/misc/searchPage/index.vue"
|
||||
import ConcertsPage from "@/pages/concerts/concertsPage/index.vue"
|
||||
import ConcertBookingPage from "@/pages/concerts/concertBookingPage/index.vue"
|
||||
import AccountHomePage from "@/pages/account/accountHomePage/index.vue";
|
||||
import AccountDataPage from "@/pages/account/accountDataPage/index.vue";
|
||||
import OrdersPage from "@/pages/account/ordersPage/index.vue";
|
||||
import LoginPage from "@/pages/account/loginPage/index.vue"
|
||||
import PreferencesPage from "@/pages/misc/preferencesPage/index.vue";
|
||||
import HelpPage from "@/pages/misc/helpPage/index.vue"
|
||||
|
||||
const routes = [
|
||||
// Main page
|
||||
{ path: "/", component: HomePage },
|
||||
{ path: '/basket', component: BasketPage },
|
||||
{ path: '/locations', component: LocationsPage },
|
||||
{ path: '/locations/:locationName', name: 'locationDetails', component: LocationDetailPage },
|
||||
{ path: '/bands/:bandName', component: BandDetailPage },
|
||||
{ path: '/concert/:id', component: TicketOrderPage },
|
||||
{ path: '/events', component: EventsPage },
|
||||
{ path: '/search', component: SearchPage },
|
||||
...accountRoutes,
|
||||
|
||||
// Account
|
||||
{ path: '/account', component: AccountHomePage },
|
||||
{ path: '/account/orders', component: OrdersPage },
|
||||
{ path: '/account/data', component: AccountDataPage },
|
||||
{ path: '/account/login', component: LoginPage },
|
||||
|
||||
// Admin
|
||||
...adminRoutes,
|
||||
...systemRoutes
|
||||
|
||||
// Bands
|
||||
{ path: '/bands', component: BandsPage },
|
||||
{ path: '/bands/detail/:name', component: BandDetailPage },
|
||||
|
||||
// Concerts
|
||||
{ path: '/concerts', component: ConcertsPage },
|
||||
{ path: '/concert/booking/:id', component: ConcertBookingPage },
|
||||
|
||||
// Locations
|
||||
{ path: '/locations', component: LocationsPage },
|
||||
{ path: '/locations/detail/:name', name: 'locationDetails', component: LocationDetailPage },
|
||||
|
||||
// Misc
|
||||
{ path: '/search', component: SearchPage },
|
||||
{ path: '/basket', component: BasketPage },
|
||||
{ path: '/preferences', component: PreferencesPage },
|
||||
{ path: '/help', component: HelpPage }
|
||||
]
|
||||
|
||||
export default routes
|
||||
Reference in New Issue
Block a user