Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umbraco v13 - disabling UseWebsiteEndpoints breaks usync cli #9

Open
benmcevoy opened this issue Aug 21, 2024 · 0 comments
Open

umbraco v13 - disabling UseWebsiteEndpoints breaks usync cli #9

benmcevoy opened this issue Aug 21, 2024 · 0 comments

Comments

@benmcevoy
Copy link

benmcevoy commented Aug 21, 2024

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant