Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

Commit eb8c41c

Browse files
committed
fix extern create redirect documentation, add extern remove redirect route
1 parent c04e494 commit eb8c41c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

api/src/core/routes/migration.tsp

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ namespace Migration {
106106
/**
107107
* Tell the homeserver of the "old" actor account that you intend to set up a redirect to
108108
* this actor
109+
* @param redirectSourceFid: The federation ID of the actor who should be the source of the
110+
* redirect.
109111
* @returns
110112
* - `200` if the link has been created
111113
* - `202` if the other account still needs to accept to establish the link.
@@ -114,10 +116,26 @@ namespace Migration {
114116
@post
115117
@added(Version.`v1.0-beta.1`)
116118
@summary("Set up a redirect for migrating identities")
117-
op setupRedirectExtern(@body redirectSourceFid: string): {
119+
op setupRedirectExtern(@query redirectSourceFid: string): {
118120
@statusCode statusCode: 202 | 200;
119121
};
120122

123+
/**
124+
* Tell the homeserver of the "old" actor account that you no longer intend to set up a
125+
* redirect to this actor
126+
* @param redirectSourceFid: The federation ID of the actor who should no longer be the source of the
127+
* redirect.
128+
* @returns
129+
* - `200` if the link has been removed
130+
*/
131+
@route("/redirect/extern")
132+
@delete
133+
@added(Version.`v1.0-beta.1`)
134+
@summary("Set up a redirect for migrating identities")
135+
op removeRedirectExtern(@query redirectSourceFid: string): {
136+
@statusCode statusCode: 200;
137+
};
138+
121139
/**
122140
* Stop an in-progress or existing re-signing process.
123141
* @returns

0 commit comments

Comments
 (0)