Skip to content

Commit

Permalink
Merge pull request #6 from traP-jp/fix-setting
Browse files Browse the repository at this point in the history
おかしかった設定を直した
  • Loading branch information
Rozelin-dc authored Jun 15, 2024
2 parents 322ad44 + e25489a commit 6174b08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion src/lib/apis/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { Apis, Configuration } from './generated'

const api = new Apis(new Configuration())
const api = new Apis(
new Configuration({
basePath:
import.meta.env.MODE === 'production'
? 'https://trap.show/h24s_19_server'
: 'http://localhost:3000',
})
)

export default api
export * from './generated'
10 changes: 5 additions & 5 deletions src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ const routes: RouteRecordRaw[] = [
{
path: '/',
name: 'Home',
component: import('@/pages/HomePage.vue'),
component: () => import('@/pages/HomePage.vue'),
},
{
path: '/rooms',
name: 'Rooms',
component: import('@/pages/RoomList.vue'),
component: () => import('@/pages/RoomList.vue'),
},
{
path: '/rooms/:id',
name: 'IndividualRoom',
component: import('@/pages/IndividualRoom.vue'),
component: () => import('@/pages/IndividualRoom.vue'),
},
{
path: '/rooms/create',
name: 'CreateRoom',
component: import('@/pages/CreateRoom.vue'),
component: () => import('@/pages/CreateRoom.vue'),
},
{
// 404 page
path: '/:pathMatch(.*)*',
name: 'NotFound',
component: import('@/pages/NotFound.vue'),
component: () => import('@/pages/NotFound.vue'),
}
]

Expand Down

0 comments on commit 6174b08

Please sign in to comment.