-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update nitropack to 0.6.x (#145)
- Loading branch information
1 parent
b95b03f
commit 295bdac
Showing
9 changed files
with
387 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,6 @@ | ||
export interface Product { | ||
id: number; | ||
name: string; | ||
price: number; | ||
description: string; | ||
} | ||
|
||
export const products: Product[] = [ | ||
{ | ||
id: 1, | ||
name: 'Phone XL', | ||
price: 799, | ||
description: 'A large phone with one of the best screens' | ||
}, | ||
{ | ||
id: 2, | ||
name: 'Phone Mini', | ||
price: 699, | ||
description: 'A great phone with one of the best cameras' | ||
}, | ||
{ | ||
id: 3, | ||
name: 'Phone Standard', | ||
price: 299, | ||
description: '' | ||
} | ||
]; | ||
|
||
|
||
export interface Product { | ||
id: number; | ||
name: string; | ||
price: number; | ||
description: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { eventHandler } from 'h3'; | ||
|
||
export default eventHandler(() => [ | ||
{ | ||
id: 1, | ||
name: 'Phone XL', | ||
price: 799, | ||
description: 'A large phone with one of the best screens', | ||
}, | ||
{ | ||
id: 2, | ||
name: 'Phone Mini', | ||
price: 699, | ||
description: 'A great phone with one of the best cameras', | ||
}, | ||
{ | ||
id: 3, | ||
name: 'Phone Standard', | ||
price: 299, | ||
description: '', | ||
}, | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.