mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-19 09:08:10 +09:00
9 lines
161 B
JavaScript
9 lines
161 B
JavaScript
|
import * as riot from 'riot';
|
||
|
import api from '../scripts/api';
|
||
|
|
||
|
export default me => {
|
||
|
riot.mixin('api', {
|
||
|
api: api.bind(null, me ? me.token : null)
|
||
|
});
|
||
|
};
|