ストリーム経由でAPIにリクエストできるように
This commit is contained in:
parent
91791834be
commit
bd3d57a67f
15 changed files with 137 additions and 179 deletions
|
|
@ -6,7 +6,9 @@ import User, { pack } from '../../../models/user';
|
|||
/**
|
||||
* Show myself
|
||||
*/
|
||||
module.exports = (params, user, _, isSecure) => new Promise(async (res, rej) => {
|
||||
module.exports = (params, user, app) => new Promise(async (res, rej) => {
|
||||
const isSecure = user != null && app == null;
|
||||
|
||||
// Serialize
|
||||
res(await pack(user, user, {
|
||||
detail: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue