chore: rewrite /login page for OAuth, write createUser for the database
This commit is contained in:
@@ -14,8 +14,6 @@ import { RenderFunction } from './shared/ssr'
|
||||
// Load ".env"
|
||||
dotenv.config()
|
||||
|
||||
// const HTML_ROUTES = ['/', '/login', '/problem/:id', '/u/:uid', '/admin', '/profile', '/scores']
|
||||
|
||||
const config = {
|
||||
isDevelopment: process.env.MODE === 'development',
|
||||
port: process.env.PORT || 3000,
|
||||
@@ -26,13 +24,6 @@ if (config.isDevelopment) {
|
||||
console.log(`[Config] PORT = ${config.port}`)
|
||||
}
|
||||
|
||||
// function mountIndexHtmlRoutes(r: Router, serveIndexHtml: Handler) {
|
||||
// for (const route of HTML_ROUTES) {
|
||||
// console.log(`[Server] Mounted index html for "${route}"`)
|
||||
// r.get(route, serveIndexHtml)
|
||||
// }
|
||||
// }
|
||||
|
||||
async function createDevRouter() {
|
||||
const r = express.Router()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user