mirror of
https://github.com/streetwriters/notesnook-sync-server.git
synced 2026-10-01 02:39:39 +02:00
monographs: add slug field which regenerates on republish (#72)
* monographs: add slug field which regenerates on update * monographs: don't regenerate slug on update * common: fix monograph public url constant * monographs: improve APIs && use .Project when fetching monographs * create separate endpoint for fetching monographs by slug * combine analytics and publish-url endpoint into a publish-info endpoint * monographs: reinstate analytics endpoint * common: add missing monograph constant * monograph: refactoring --------- Co-authored-by: Abdullah Atta <abdullahatta@streetwriters.co>
This commit is contained in:
1 parent
da58262afb
commit
4bc1469dfe
6 files changed
+116
-24
No files matched your search
@@ -80,6 +80,7 @@ namespace Streetwriters.Common
|
||||
public static string? SUBSCRIPTIONS_CERT_KEY_PATH => ReadSecret("SUBSCRIPTIONS_CERT_KEY_PATH");
|
||||
public static string[] NOTESNOOK_CORS_ORIGINS => ReadSecret("NOTESNOOK_CORS")?.Split(",") ?? [];
|
||||
public static string? SIGNALR_REDIS_CONNECTION_STRING => ReadSecret("SIGNALR_REDIS_CONNECTION_STRING");
|
||||
public static string MONOGRAPH_PUBLIC_URL => ReadSecret("MONOGRAPH_PUBLIC_URL") ?? "https://monogr.ph";
|
||||
|
||||
public static string? ReadSecret(string name)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user