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 = 'MAY SUBSCRIBER ITEMS AND OFFICIAL HABITICA CHALLENGES!'; 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: `
The May Subscriber Item Set has been revealed: the Wondrous Wyvern Item Set! Subscribe to Habitica by May 31 to receive this exciting set! If you're already an active subscriber, reload the site and then head to Inventory > Items to claim your gear!
Subscribers also receive the ability to buy Gems with Gold -- the longer you subscribe, the more Gems you can buy per month! There are other perks as well, such as longer access to uncompressed data and a cute Jackalope pet. Best of all, subscriptions let us keep Habitica running. Thank you very much for your support -- it means a lot to us.
The Habitica team has launched a special official Challenge series hosted in the Official New Year's Resolution Guild. These Challenges are designed to help you build and maintain goals that are destined for success and then stick with them as the year progresses. For this month's Challenge, Review Your Combat Tactics, we're focusing on refining your strategy to help you stay motivated and keep moving forward as we're almost halfway through the year! It has a 15 Gem prize, which will be awarded to five lucky winners on June 1st.
Congratulations to the winners of April's Challenge: @Auralov, @organized_aspie, @yasaminnb, @noblegeas and @Nodel!
The next Take This Challenge has also launched, "Don't Be a Completionist!", with a focus on prioritization. Be sure to check it out to earn additional pieces of the Take This armor set!
Take This is a nonprofit that seeks to inform the gamer community about mental health issues, to provide education about mental disorders and mental illness prevention, and to reduce the stigma of mental illness.
Congratulations to the winners of the last Take This Challenge, "This One Goes to 11!": grand prize winner @Daphne36, and runners-up @aggripa, @Lily_of_the_valley, @Mockingjayabi, @Cirth, and @KatieIrene! Plus, all participants in that Challenge have received a piece of the Take This item set if they hadn't completed it already. It is located in your Rewards column. Enjoy!