feat(app): interaction authorization command

master
Xeronith 2022-12-06 11:50:06 +03:30
rodzic 60b372b0fa
commit 359cb2c42c
2 zmienionych plików z 22 dodań i 0 usunięć

Wyświetl plik

@ -15,6 +15,7 @@
8. [Webfinger](#webfinger)
9. [GetActor](#get-actor)
10. [FollowActor](#follow-actor)
11. [AuthorizeInteraction](#authorize-interaction)
---
@ -152,3 +153,14 @@ Result:
string url
```
[Back to List](#apis)
## Authorize Interaction
```
Request:
string uri
Result:
string uri
bool success
```
[Back to List](#apis)

Wyświetl plik

@ -0,0 +1,10 @@
package spi
import . "rail.town/infrastructure/components/contracts"
func AuthorizeInteraction(x IDispatcher, uri string) (IAuthorizeInteractionResult, error) {
return x.NewAuthorizeInteractionResult(
uri, // uri
true, // success
), nil
}