feat: passkey в профиле и входе, кнопка админки в кабинете
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -17,6 +17,7 @@ const adminRoutes = require('./routes/admin');
|
||||
const cookiesRoutes = require('./routes/cookies');
|
||||
const passwordResetRoutes = require('./routes/password-reset');
|
||||
const reservationsRoutes = require('./routes/reservations');
|
||||
const passkeyRoutes = require('./routes/passkey');
|
||||
|
||||
const PORT = process.env.PORT || 3000;
|
||||
const HOST = process.env.HOST || '0.0.0.0';
|
||||
@@ -40,6 +41,7 @@ async function start() {
|
||||
app.use(healthRoutes);
|
||||
app.use(express.static(path.join(__dirname, 'public')));
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
app.use(express.json({ limit: '64kb' }));
|
||||
app.use(cookieParser());
|
||||
|
||||
app.use(
|
||||
@@ -68,6 +70,7 @@ async function start() {
|
||||
app.use('/reservations', reservationsRoutes);
|
||||
app.use('/', shopRoutes);
|
||||
app.use('/', authRoutes);
|
||||
app.use('/webauthn', passkeyRoutes);
|
||||
app.use('/account', accountRoutes);
|
||||
app.use('/admin', adminRoutes);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user