init for deploy files
This commit is contained in:
19
src/route/user/login.ts
Normal file
19
src/route/user/login.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { query } from '@/module/query.ts';
|
||||
|
||||
export const queryLogin = async (username: string, password: string) => {
|
||||
return await query.post({
|
||||
path: 'user',
|
||||
key: 'login',
|
||||
payload: {
|
||||
username,
|
||||
password,
|
||||
},
|
||||
});
|
||||
};
|
||||
|
||||
export const queryMe = async () => {
|
||||
return await query.post({
|
||||
path: 'user',
|
||||
key: 'me',
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user