loentar / ngrest

Fast and easy C++ RESTful WebServices framework
Apache License 2.0
464 stars 93 forks source link

How configure/compile a version without a service ? #94

Open JL2014 opened 2 years ago

JL2014 commented 2 years ago

Hi,

I would like compile without the "favicon" service or "serverstatus" service.

How can I achieve this goal ?

Greetings, JL.

loentar commented 2 years ago

just remove/comment out

add_subdirectory(services)

from main CMakeLists.txt

JL2014 commented 2 years ago

Hi @loentar,

Thank you ! I see that remove ".so" files from "/usr/local/share/ngrest/services/" folder do also the job.

But when I disable "serverstatus" service, the URL on my "notes" service doesn't respond.

Is it possible to have only one "notes" service (as described in https://github.com/loentar/ngrest/wiki/Creating-and-starting-a-project-guide-with-screenshots) without have the "serverstatus" service ?

Greetings, JL.

loentar commented 1 year ago

It should respond. make sure you're invoking your own service not the "server status" service under /ngrest path

e.g. http://localhost:9098/calc/me

NOT http://localhost:9098/ngrest/operation/Calc/echo