feat: Separate api token serializers and do not show token except creation
This commit is contained in:
@@ -5,7 +5,7 @@ export default async (request, response) => {
|
||||
const apiToken = await ApiToken.query().insertAndFetch({});
|
||||
|
||||
renderObject(response, apiToken, {
|
||||
serializer: 'AdminApiToken',
|
||||
serializer: 'AdminApiTokenFull',
|
||||
status: 201,
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user