Commit 6f9f2097 authored by Tien-Thinh Nguyen's avatar Tien-Thinh Nguyen

Fix issue for base for Namf-event-exposure

parent b9aaf768
......@@ -46,7 +46,7 @@ class IndividualSubscriptionDocumentApiEventExposure {
virtual ~IndividualSubscriptionDocumentApiEventExposure() = default;
void init();
const std::string base = "/namf-comm/";
const std::string base = "/namf-evts/";
private:
void setupRoutes();
......
......@@ -33,7 +33,6 @@ void IndividualSubscriptionDocumentApiImplEventExposure::delete_subscription(
"SubscriptionsCollectionDocumentApiImplEventExposure::delete_"
"subscription");
// Create a message and store the necessary information
Logger::amf_server().debug(
"Delete a subscription with ID %s", subscriptionId.c_str());
......
......@@ -68,7 +68,7 @@ void SubscriptionsCollectionDocumentApiImplEventExposure::create_subscription(
std::string location =
std::string(inet_ntoa(*((struct in_addr*) &amf_cfg.n11.addr4))) + ":" +
std::to_string(amf_cfg.n11.port) + base + amf_cfg.sbi_api_version +
"/namf_event-exposure/" + std::to_string(sub_id);
"/namf-evts/" + std::to_string(sub_id);
json_data["subscriptionId"] = location;
response.headers().add<Pistache::Http::Header::Location>(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment