@@ -8,6 +8,7 @@ const downloadsManifest = require('../manifests/internal/downloads')
88const historyManifest = require ( '../manifests/internal/history' )
99const sitedataManifest = require ( '../manifests/internal/sitedata' )
1010const watchlistManifest = require ( '../manifests/internal/watchlist' )
11+ const templatesManifest = require ( '../manifests/internal/templates' )
1112const crawlerManifest = require ( '../manifests/internal/crawler' )
1213const postsManifest = require ( '../manifests/internal/posts' )
1314const followgraphManifest = require ( '../manifests/internal/followgraph' )
@@ -25,6 +26,7 @@ exports.setup = function (rpc) {
2526 const historyRPC = rpc . importAPI ( 'history' , historyManifest , opts )
2627 const sitedataRPC = rpc . importAPI ( 'sitedata' , sitedataManifest , opts )
2728 const watchlistRPC = rpc . importAPI ( 'watchlist' , watchlistManifest , opts )
29+ const templatesRPC = rpc . importAPI ( 'templates' , templatesManifest , opts )
2830 const crawlerRPC = rpc . importAPI ( 'crawler' , crawlerManifest , opts )
2931 const postsRPC = rpc . importAPI ( 'posts' , postsManifest , opts )
3032 const followgraphRPC = rpc . importAPI ( 'followgraph' , followgraphManifest , opts )
@@ -49,10 +51,6 @@ exports.setup = function (rpc) {
4951 beaker . archives . listDrafts = archivesRPC . listDrafts
5052 beaker . archives . addDraft = archivesRPC . addDraft
5153 beaker . archives . removeDraft = archivesRPC . removeDraft
52- beaker . archives . getTemplate = archivesRPC . getTemplate
53- beaker . archives . listTemplates = archivesRPC . listTemplates
54- beaker . archives . putTemplate = archivesRPC . putTemplate
55- beaker . archives . removeTemplate = archivesRPC . removeTemplate
5654 beaker . archives . touch = archivesRPC . touch
5755 beaker . archives . clearFileCache = archivesRPC . clearFileCache
5856 beaker . archives . clearGarbage = archivesRPC . clearGarbage
@@ -160,6 +158,13 @@ exports.setup = function (rpc) {
160158 beaker . watchlist . remove = watchlistRPC . remove
161159 beaker . watchlist . createEventsStream = ( ) => fromEventStream ( watchlistRPC . createEventsStream ( ) )
162160
161+ // beaker.templates
162+ beaker . templates = { }
163+ beaker . templates . get = templatesRPC . get
164+ beaker . templates . list = templatesRPC . list
165+ beaker . templates . put = templatesRPC . put
166+ beaker . templates . remove = templatesRPC . remove
167+
163168 // beaker.crawler
164169 beaker . crawler = { }
165170 beaker . crawler . getCrawlStates = crawlerRPC . getCrawlStates
0 commit comments