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

11 lines
171 B
JavaScript

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