This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
outline/server/presenters/apiKey.js

14 lines
231 B
JavaScript

// @flow
import { type Context } from 'koa';
import { ApiKey } from '../models';
function present(ctx: Context, key: ApiKey) {
return {
id: key.id,
name: key.name,
secret: key.secret,
};
}
export default present;