kopia lustrzana https://github.com/reiver/greatape
feat(app): ✨ interaction authorization command
rodzic
60b372b0fa
commit
359cb2c42c
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
Ładowanie…
Reference in New Issue