about summary refs log tree commit diff
path: root/Tests/LibMatrix.HomeserverEmulator/Controllers/ThirdParty/ThirdPartyController.cs
blob: ff006dfd662b9cff6e9ec6330468df47428a71c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using LibMatrix.HomeserverEmulator.Services;
using Microsoft.AspNetCore.Mvc;

namespace LibMatrix.HomeserverEmulator.Controllers.ThirdParty;

[ApiController]
[Route("/_matrix/client/{version}/thirdparty/")]
public class ThirdPartyController(ILogger<ThirdPartyController> logger, TokenService tokenService, UserStore userStore, RoomStore roomStore) : ControllerBase {
    [HttpGet("protocols")]
    public async Task<object> GetProtocols() {
        return new { };
    }

    [HttpGet("location")]
    public async Task<List<object>> GetLocations([FromQuery] string alias) {
        // TODO: implement
        return [];
    }

    [HttpGet("location/{protocol}")]
    public async Task<List<object>> GetLocation([FromRoute] string protocol) {
        // TODO: implement
        return [];
    }
}