Skip to content

umbraco v13 - disabling UseWebsiteEndpoints breaks usync cli #9

@benmcevoy

Description

@benmcevoy

Hi,

I am using umbraco v13 in a headless configuration. As such I have disabled the website part of Umbraco in the program.cs, e.g.

app.UseUmbraco()
    .WithMiddleware(u =>
    {
        u.UseBackOffice();
       // u.UseWebsite();
    })
    .WithEndpoints(u =>
    {
        u.UseBackOfficeEndpoints();
       // u.UseWebsiteEndpoints();
    });

(I disabled it for security reasons and because I do not use it).

In this configuration uSync Cli does not work, every command is 404.

I have the following dependencies:

  <ItemGroup>
    <PackageReference Include="Examine" Version="4.0.0-beta.1" />
    <PackageReference Include="Umbraco.Cms" Version="13.4.1" />
    <PackageReference Include="Umbraco.Community.DeliveryApiExtensions" Version="13.0.0" />
    <PackageReference Include="uSync" Version="13.2.4" />
    <PackageReference Include="uSync.Commands" Version="13.1.0" />
    <PackageReference Include="uSync.Commands.server" Version="13.1.0" />
  </itemGroup>

In my own code I have controllers, auth etc in a similar fashion to SyncCommandController but that seems to work fine for me, so I am not sure what is causing this.

EDIT: well, not that similar - I am using controllers to expose service at e.g. /foo and not /umbraco/foo. I do not inherit UmbracoApiController.

Is this a supported use case?

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions