import { authWithHeaders } from '../../middlewares/auth'; const api = {}; // @TODO export this const, cannot export it from here because only routes are exported from // controllers const LAST_ANNOUNCEMENT_TITLE = 'LAST CHANCE FOR SUMMER SPLASH OUTFITS, SUMMER AVATAR CUSTOMIZATIONS, MAGIC HATCHING POTIONS, AND SEAFOAM'; const worldDmg = { // @TODO bailey: false, }; /** * @api {get} /api/v3/news Get latest Bailey announcement * @apiName GetNews * @apiGroup News * * * @apiSuccess {Object} html Latest Bailey html * */ api.getNews = { method: 'GET', url: '/news', async handler (req, res) { const baileyClass = worldDmg.bailey ? 'npc_bailey_broken' : 'npc_bailey'; res.status(200).send({ html: `
Summer Splash is coming to a close in Habitica on July 31, so be sure to snag this year's limited edition outfits from your Rewards column. Depending on your class, you can be an Oarfish Mage, Crocodile Rogue, Rainbow Trout Warrior, or Sea Glass Healer. Don't miss these awesome gear sets, available to purchase with Gold for now!
The Seasonal Shop will also close when the Gala ends. The Seasonal Sorceress is stocking the seasonal edition versions of previous summer outfits, now available for Gems instead of Gold, and Seafoam.
Watery, Aquatic, and Sand Sculpture Magic Hatching Potions are also leaving the Market on July 31. If they come back, it won't be until next year at the earliest, so don't delay!
Don't miss the Splashy Skins! They're also available in User > Customize Avatar until the Gala ends. But once you purchase them, you can use them year-round!
You have until July 31 to subscribe and receive the Outstanding Orca Set! Subscribing also lets you buy Gems with Gold. The longer your subscription, the more Gems you can get!
Thanks so much for your support! You help keep Habitica running ad-free.
Lastly, don't forget the discounted Aquatic Amigos Pet Quest Bundle, featuring the Axolotl, Cuttlefish, and Octopus quests all for seven Gems! Be sure to snag it from the Quest Shop before it splashes out of sight when the Gala closes.