Headless CMS and Content Managment Hub
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

37 lines
1.1 KiB

// ==========================================================================
// Squidex Headless CMS
// ==========================================================================
// Copyright (c) Squidex UG (haftungsbeschränkt)
// All rights reserved. Licensed under the MIT license.
// ==========================================================================
using Microsoft.AspNetCore.Builder;
using Squidex.Areas.Api.Config;
using Squidex.Areas.Api.Config.OpenApi;
using Squidex.Web;
namespace Squidex.Areas.Api
{
public static class Startup
{
public static void ConfigureApi(this IApplicationBuilder app)
{
app.Map(Constants.ApiPrefix, appApi =>
{
appApi.UseMiddleware<IdentityServerPathMiddleware>();
appApi.UseRouting();
appApi.UseAuthentication();
appApi.UseAuthorization();
appApi.UseSquidexOpenApi();
appApi.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
});
}
}
}