using Microsoft.AspNetCore.Mvc;
using RecRoomArchive.Services;
namespace RecRoomArchive.Controllers.API.Config.V1
{
///
/// Configs that control Rec Room. These configs include data like Amplitude, MessageOfTheDay, Objectives, etc...
///
[Route(template: "api/[controller]/v1")]
[ApiController]
public class ConfigController(MessageOfTheDayService motdService) : ControllerBase
{
///
/// Gets the legacy version of the Message of the Day, to display on the Dorm Room bulletin board, or to show on the login screen in pre-Dorm Room versions of the game
///
/// A basic string to display in game, related to the Message of the Day
[HttpGet(template: "motd")]
public async Task> GetMessageOfTheDay()
{
var messageOfTheDay = await motdService.GetMessageOfTheDay();
return Ok(messageOfTheDay);
}
///
/// Returns the current daily objectives to use before config/v2 existed
///
/// A list of objectives
[HttpGet(template: "objectives")]
public async Task>> GetDailyObjectives()
{
return Ok(new List