SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
import httpStatus from 'http-status';
import { ExpressHandler } from '../../../../../types';
import { domainRegisterationService } from '../../services';
export const queryDomain: ExpressHandler<{ name: string }, { domain: any }> = async (req, res) => {
const { name } = req.body;
const domain = await domainRegisterationService.getDomain(name, undefined, {
anonymous: true,
});
res.status(httpStatus.OK).json({
message: 'Domain retrieved successfully',
domain,
});
};
export const getDomains: ExpressHandler<null, { domains: any }> = async (req, res) => {
const { verified = true, name, aiAgentId } = req.query;
const domains = await domainRegisterationService.getDomainsM2M({
verified: Boolean(verified),
name: name as string,
aiAgentId: aiAgentId as string,
});
res.status(httpStatus.OK).json({
message: 'Domains retrieved successfully',
domains,
});
};