diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-23 11:01:38 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:00:32 -0400 |
commit | 3335f16ad1a6ec114058a8b7e6e71c2cae33c33d (patch) | |
tree | b42f864824fde1b4698687b069c9c5caafae8b0c /src/api/routes/applications/#id/skus.ts | |
parent | auth routes (diff) | |
download | server-3335f16ad1a6ec114058a8b7e6e71c2cae33c33d.tar.xz |
applications
Diffstat (limited to 'src/api/routes/applications/#id/skus.ts')
-rw-r--r-- | src/api/routes/applications/#id/skus.ts | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/api/routes/applications/#id/skus.ts b/src/api/routes/applications/#id/skus.ts index fcb75423..dc4fad23 100644 --- a/src/api/routes/applications/#id/skus.ts +++ b/src/api/routes/applications/#id/skus.ts @@ -16,13 +16,23 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. */ -import { Request, Response, Router } from "express"; import { route } from "@spacebar/api"; +import { Request, Response, Router } from "express"; const router: Router = Router(); -router.get("/", route({}), async (req: Request, res: Response) => { - res.json([]).status(200); -}); +router.get( + "/", + route({ + responses: { + 200: { + body: "ApplicationSkusResponse", + }, + }, + }), + async (req: Request, res: Response) => { + res.json([]).status(200); + }, +); export default router; |