mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat(api): add autoproxy endpoints
This commit is contained in:
parent
67ce371e7e
commit
c87979ef03
6 changed files with 152 additions and 6 deletions
|
|
@ -16,7 +16,7 @@ public class AutoproxySettings
|
|||
{
|
||||
public AutoproxyMode AutoproxyMode { get; }
|
||||
public MemberId? AutoproxyMember { get; }
|
||||
public Instant LastLatchTimestamp { get; }
|
||||
public Instant? LastLatchTimestamp { get; }
|
||||
}
|
||||
|
||||
public static class AutoproxyExt
|
||||
|
|
@ -27,7 +27,8 @@ public static class AutoproxyExt
|
|||
|
||||
// tbd
|
||||
o.Add("autoproxy_mode", settings.AutoproxyMode.ToString().ToLower());
|
||||
o.Add("autoproxy_member", memberHid);
|
||||
o.Add("autoproxy_member", settings.AutoproxyMode == AutoproxyMode.Front ? null : memberHid);
|
||||
o.Add("last_latch_timestamp", settings.LastLatchTimestamp?.FormatExport());
|
||||
|
||||
return o;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue