#pragma once

class QObject;
class QHttpServer;

namespace softbus::api::ipc
{
class CommandDispatcher;
} // namespace softbus::api::ipc

namespace softbus::api::http
{

/// Registers REST routes on `server`. `routeContext` is the QObject passed to QHttpServer::route (lifetime).
void registerSoftbusRestApiRoutes(QHttpServer* server,
                                  QObject* routeContext,
                                  softbus::api::ipc::CommandDispatcher* dispatcher);

} // namespace softbus::api::http
