Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Adding a new controller-endpoint #5795


User avatar
0
larsfk created

Hi!

I want to add a new endpoint to FileController (Aspnet Core + Angular 6), but when I do I cant reach it. How does this work in AspnetZero? And how is the Swagger endpoints added? Is it possible to get the endpoints from other controllers in .Core to be a part of Swagger?

Thanks :)


2 Answer(s)
  • User Avatar
    0
    larsfk created

    I had a bug in my constructor. It works now, but it still doesnt show up in Swagger.

  • User Avatar
    1
    aaron created
    Support Team

    Use [Route("")] and [RemoteService] attributes.