MCPcopy
hub / github.com/1weiho/open-slide / configureServer

Function configureServer

packages/core/src/vite/api-plugin.ts:21–31  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

19 name: 'open-slide:api',
20 apply: 'serve',
21 configureServer(server) {
22 const ctx = makeContext(opts);
23 registerWatchers(server, ctx);
24 registerEditRoutes(server, ctx);
25 registerCommentRoutes(server, ctx);
26 registerSlideRoutes(server, ctx);
27 registerAssetRoutes(server, ctx);
28 registerSvglRoutes(server);
29 registerFolderRoutes(server, ctx);
30 registerUpdateRoutes(server, ctx);
31 },
32 };
33}

Callers

nothing calls this directly

Calls 9

makeContextFunction · 0.90
registerWatchersFunction · 0.90
registerEditRoutesFunction · 0.90
registerCommentRoutesFunction · 0.90
registerSlideRoutesFunction · 0.90
registerAssetRoutesFunction · 0.90
registerSvglRoutesFunction · 0.90
registerFolderRoutesFunction · 0.90
registerUpdateRoutesFunction · 0.90

Tested by

no test coverage detected