mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-13 19:15:39 +00:00
frontend integration
This commit is contained in:
14
templates/index.js
Normal file
14
templates/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import {Router} from './router';
|
||||
|
||||
import * as login from './auth/login';
|
||||
import * as register from './auth/register';
|
||||
import * as panel from './panel/index';
|
||||
|
||||
const router = new Router();
|
||||
|
||||
router.register('/', login.index);
|
||||
router.register('/register', register.index);
|
||||
router.register('/panel/', panel.index);
|
||||
router.register('/panel/layout.html/', panel.index);
|
||||
|
||||
router.route();
|
||||
Reference in New Issue
Block a user