mirror of
https://git.recroomarchive.org/RecRoomArchive/RRAC.git
synced 2026-09-08 06:31:25 -07:00
387ec7ba89
Added basic info to get in game for like...August 2016 ;-; It's not much but it's a start
40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
|
using RecRoomArchive.Services;
|
|
|
|
namespace RecRoomArchive
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
#region Services
|
|
builder.Services.AddControllers();
|
|
builder.Services.AddOpenApi();
|
|
builder.Services.AddHttpContextAccessor();
|
|
|
|
builder.Services.AddScoped<AccountService>();
|
|
builder.Services.AddScoped<AppVersionService>();
|
|
builder.Services.AddScoped<AuthorizationService>();
|
|
builder.Services.AddScoped<ConfigService>();
|
|
builder.Services.AddScoped<FileService>();
|
|
builder.Services.AddScoped<ImageService>();
|
|
builder.Services.AddScoped<MessageOfTheDayService>();
|
|
#endregion
|
|
|
|
var app = builder.Build();
|
|
|
|
if (app.Environment.IsDevelopment())
|
|
{
|
|
app.MapOpenApi();
|
|
}
|
|
|
|
app.UseAuthorization();
|
|
|
|
app.MapControllers();
|
|
|
|
app.Run();
|
|
}
|
|
}
|
|
} |