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 = 'HABITICA HARVEST FEAST! AND LAST CHANCE FOR NOVEMBER LIMITED TIME ITEMS'; 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: `
It's time for Habitica's Harvest Feast! On this day Habiticans celebrate by spending time with loved ones, giving thanks, enjoying their favorite foods, and riding their glorious turkeys into the magnificent sunset. Some of the NPCs are celebrating the occasion!
Those of you who weren't around for all of our previous Harvest Feasts have received an adorable Turkey! What kind of Turkey? It all depends on how many harvests you've celebrated with us. If you've completed your Turkey collection, you'll receive a feast of delicious pie for your pets!
Thank you for using Habitica - we really love you all <3
Reminder: the end of November is the last chance to receive the Crystal Charmer Set when you sign up for a Habitica subscription! Subscribing also lets you buy Gems for Gold. The longer your subscription, the more Gems you can get!
Thanks so much for your support! You help keep Habitica running.
Reminder: time is running out to buy Thunderstorm and Ember Hatching Potions! If they come back, it won't be until next year at the earliest, so don't delay!
There's also only a few days left to buy the discounted Delightful Dinos Pet Quest Bundle, featuring the Pterodactyl, Triceratops, and T-Rex quests all for seven Gems! Be sure to get yours from the Quest Shop before this deal goes extinct!