fsf
Version:
A typesafe websocket RPC library which thins the borders between clients and servers.
19 lines (18 loc) • 677 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const index_1 = require("../../src/index");
const listFiles_1 = __importDefault(require("./apis/listFiles"));
const searchMovie_1 = __importDefault(require("./apis/searchMovie"));
const api = {
hello: () => "Hello World!",
sum: (x, y) => x + y,
// Make an API call to movies API
searchMovie: searchMovie_1.default,
// Fetch all files on server
listFiles: listFiles_1.default,
errorFunction: (a) => a.b,
};
index_1.Server(8080, api);