diff --git a/src/routes/bots.ts b/src/routes/bots.ts index 12768d4..92aa3b5 100644 --- a/src/routes/bots.ts +++ b/src/routes/bots.ts @@ -30,6 +30,19 @@ resource('/bots/create', { ) }); +resource('/bots/@me', { + get: routeAuthenticated( + "Fetch Owned Bots", + "Fetch all of your bots.", + { + ...await success("Array of bot objects.", schema` + import type { Bot } from './Bots'; + type ${'MyBots'} = Bot[]; + `) + } + ) +}); + const botParams = { parameters: [ await parameter('bot', 'Bot ID', ref("Id"))