From 8ac35a6b74e3c63b03a20edded9c33a61a522574 Mon Sep 17 00:00:00 2001 From: sauls8t Date: Mon, 3 Feb 2020 21:01:25 +0000 Subject: [PATCH] Routes for new pinned documents --- server/routing/routes.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/routing/routes.go b/server/routing/routes.go index 0af4a165..c916eaac 100644 --- a/server/routing/routes.go +++ b/server/routing/routes.go @@ -67,7 +67,7 @@ func RegisterEndpoints(rt *env.Runtime, s *store.Store) { setting := setting.Handler{Runtime: rt, Store: s} category := category.Handler{Runtime: rt, Store: s} keycloak := keycloak.Handler{Runtime: rt, Store: s} - cas := cas.Handler{Runtime:rt, Store: s} + cas := cas.Handler{Runtime: rt, Store: s} template := template.Handler{Runtime: rt, Store: s, Indexer: indexer} document := document.Handler{Runtime: rt, Store: s, Indexer: indexer} attachment := attachment.Handler{Runtime: rt, Store: s, Indexer: indexer} @@ -134,6 +134,9 @@ func RegisterEndpoints(rt *env.Runtime, s *store.Store) { AddPrivate(rt, "documents/{documentID}/pages/{pageID}/meta", []string{"GET", "OPTIONS"}, nil, page.GetMeta) AddPrivate(rt, "documents/{documentID}/pages/{pageID}/copy/{targetID}", []string{"POST", "OPTIONS"}, nil, page.Copy) AddPrivate(rt, "document/duplicate", []string{"POST", "OPTIONS"}, nil, document.Duplicate) + AddPrivate(rt, "document/pinmove/{documentID}", []string{"POST", "OPTIONS"}, nil, document.PinMove) + AddPrivate(rt, "document/pin/{documentID}", []string{"POST", "OPTIONS"}, nil, document.Pin) + AddPrivate(rt, "document/unpin/{documentID}", []string{"DELETE", "OPTIONS"}, nil, document.Unpin) AddPrivate(rt, "organization/setting", []string{"GET", "OPTIONS"}, nil, setting.GetGlobalSetting) AddPrivate(rt, "organization/setting", []string{"POST", "OPTIONS"}, nil, setting.SaveGlobalSetting)