mirror of
https://github.com/paricafe/misskey.git
synced 2024-12-02 16:26:44 -06:00
2756f553c6
* wip
* wip
* wip
* Update attached_notes.ts
* wip
* Refactor
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update call.ts
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* ✌️
* Fix
20 lines
347 B
TypeScript
20 lines
347 B
TypeScript
import $ from 'cafy';
|
|
import define from '../../define';
|
|
import Instance from '../../../../models/instance';
|
|
|
|
export const meta = {
|
|
requireCredential: false,
|
|
|
|
params: {
|
|
host: {
|
|
validator: $.str
|
|
}
|
|
}
|
|
};
|
|
|
|
export default define(meta, async (ps, me) => {
|
|
const instance = await Instance
|
|
.findOne({ host: ps.host });
|
|
|
|
return instance;
|
|
});
|