ll-callmobile-backend
Version:
VoIP Mobile Communications Backend with Supabase, Drizzle ORM, and Dynamic Querying - Deployable as Cloudflare Worker
35 lines • 1.31 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.app = void 0;
const hono_1 = require("hono");
const cors_1 = require("hono/cors");
const testCases_1 = __importDefault(require("./api/testCases"));
const dynamicQuery_1 = __importDefault(require("./api/dynamicQuery"));
const app = new hono_1.Hono();
exports.app = app;
// Middleware
app.use('*', (0, cors_1.cors)());
// API routes
app.route('/api', testCases_1.default);
app.route('/api', dynamicQuery_1.default);
// Health check endpoint
app.get('/', (c) => {
return c.json({
message: 'LL CallMobile Backend API',
version: '1.0.0',
status: 'running',
endpoints: {
'POST /api/testcases': 'Create a new test case',
'GET /api/testcases/:id': 'Get a test case by ID',
'GET /api/testcases/:id/client-token': 'Get client ACS token by test case ID',
'POST /api/query': 'Execute dynamic query',
'GET /api/query/:table': 'Get all records from a table',
'GET /api/query/:table/count': 'Count records in a table'
}
});
});
exports.default = app;
//# sourceMappingURL=worker.js.map