mirror of
https://github.com/dreamhunter2333/cloudflare_temp_email.git
synced 2026-07-12 16:02:10 +08:00
feat: telegram mini app open mail from bot (#256)
This commit is contained in:
21
worker/src/user_api/index.ts
Normal file
21
worker/src/user_api/index.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Hono } from 'hono';
|
||||
|
||||
import { HonoCustomType } from '../types';
|
||||
// @ts-ignore
|
||||
import settings from './settings';
|
||||
// @ts-ignore
|
||||
import user from './user';
|
||||
// @ts-ignore
|
||||
import bind_address from './bind_address';
|
||||
|
||||
export const api = new Hono<HonoCustomType>();
|
||||
|
||||
api.get('/user_api/open_settings', settings.openSettings);
|
||||
api.get('/user_api/settings', settings.settings);
|
||||
api.post('/user_api/login', user.login);
|
||||
api.post('/user_api/verify_code', user.verifyCode);
|
||||
api.post('/user_api/register', user.register);
|
||||
api.get('/user_api/bind_address', bind_address.getBindedAddresses);
|
||||
api.post('/user_api/bind_address', bind_address.bind);
|
||||
api.get('/user_api/bind_address_jwt/:address_id', bind_address.getBindedAddressJwt);
|
||||
api.post('/user_api/unbind_address', bind_address.unbind);
|
||||
Reference in New Issue
Block a user