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

default rest api reouter added. RestApiRouter sample has been added. #1680

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

MasoumiSaeed
Copy link

@MasoumiSaeed MasoumiSaeed commented Feb 3, 2022

How to use it:
...
static const void route_registeration()
{
rest_api_router::register_route("/api/v1/api1/action1", &api1::Action1);
rest_api_router::register_route("/api/v1/api1/action2", &api1::Action2);
rest_api_router::register_route("/api/v1/api2/action1", &api2::Action1);
rest_api_router::register_route("/api/v1/api2/action2", &api2::Action2);
}
...
baseListener.support_rest_api_routing(route_registeration);
...
full code:
Release/samples/RestApiRouter

@ghost
Copy link

ghost commented Feb 3, 2022

CLA assistant check
All CLA requirements met.

Added "Rest API Route" section.
@MasoumiSaeed
Copy link
Author

Is this community still alive?

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

Successfully merging this pull request may close these issues.

None yet

1 participant