Skip to content

Commit

Permalink
fix: app page import ApiMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
yuler committed Oct 12, 2023
1 parent 6a16db3 commit 25e729a
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ docker exec -it apibeer sh
- [apipost](https://www.apipost.cn/)
- [yapi](https://github.com/YMFE/yapi)
- [hoppscotch](https://github.com/hoppscotch/hoppscotch)
- [httpie](https://httpie.io/)
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,6 @@
"prisma": {
"seed": "tsx prisma/seed.ts"
},
"resolve": {
"_refs": "https://github.com/prisma/prisma/issues/12504",
"alias": {
".prisma/client/index-browser": "./node_modules/.prisma/client/index-browser.js"
}
},
"lint-staged": {
"**/*.{json,js,ts,tsx,vue,md}": [
"eslint --fix"
Expand Down
15 changes: 13 additions & 2 deletions pages/app.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
<script lang="ts" setup>
import { ApiMethod } from '@prisma/client'
import type { ApiMethod } from '@prisma/client'
const { $client } = useNuxtApp()
const method = ref<ApiMethod>('GET')
const options = Object.values(ApiMethod)
const options = [
'GET',
'HEAD',
'POST',
'PUT',
'DELETE',
'CONNECT',
'OPTIONS',
'TRACE',
'PATCH',
'CUSTOM',
]
const url = ref('https://echo.hoppscotch.io')
const response = ref()
Expand Down
1 change: 0 additions & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/bin/sh

set -ex
npx prisma generate
npx prisma migrate deploy
node .output/server/index.mjs

0 comments on commit 25e729a

Please sign in to comment.