名称変更とか
This commit is contained in:
parent
57e1ddcd3f
commit
116bade1c9
8 changed files with 54 additions and 18 deletions
|
@ -6,14 +6,14 @@ import constant from './const';
|
|||
import { config } from '../config';
|
||||
import { render } from './render';
|
||||
import { router } from './router';
|
||||
import { getUserByMisshaiToken } from './functions/users';
|
||||
import { getUserByToolsToken } from './functions/users';
|
||||
|
||||
import 'reflect-metadata';
|
||||
|
||||
export default (): void => {
|
||||
const app = new Koa();
|
||||
|
||||
console.log('Misshaialert v' + constant.version);
|
||||
console.log('Misskey Tools v' + constant.version);
|
||||
|
||||
console.log('Initializing DB connection...');
|
||||
|
||||
|
@ -30,7 +30,7 @@ export default (): void => {
|
|||
if (!authorization || !authorization.startsWith('Bearer ')) return null;
|
||||
|
||||
const token = authorization.split(' ')[1].trim();
|
||||
const user = await getUserByMisshaiToken(token);
|
||||
const user = await getUserByToolsToken(token);
|
||||
return user;
|
||||
},
|
||||
});
|
||||
|
@ -38,8 +38,6 @@ export default (): void => {
|
|||
app.use(router.routes());
|
||||
app.use(router.allowedMethods());
|
||||
|
||||
app.keys = ['人類', 'ミス廃化', '計画', 'ここに極まれり', 'フッフッフ...'];
|
||||
|
||||
console.log(`listening port ${config.port}...`);
|
||||
console.log('App launched!');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue