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 MARCH SUBSCRIBER ITEMS AND HUG A BUG BUNDLE!'; 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: `
Reminder: this is the last day to receive the Barbed Battler Set when you sign up for a new Habitica subscription! 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.
This is also the final day to buy the discounted Hug a Bug Pet Quest Bundle, featuring the Snail, Beetle, and Butterfly quests, all for seven Gems! Be sure to take your bug- catching net over to the Quest Shop before it bugs out!