1
0
mirror of https://github.com/hotomoe/hotomoe synced 2024-12-19 09:08:10 +09:00
hotomoe/src/web/app/common/mixins/api.js

9 lines
161 B
JavaScript
Raw Normal View History

2017-03-18 20:05:11 +09:00
import * as riot from 'riot';
import api from '../scripts/api';
export default me => {
riot.mixin('api', {
api: api.bind(null, me ? me.token : null)
});
};