mirror of
https://github.com/sct/overseerr.git
synced 2025-09-17 17:24:35 +02:00
feat(api-user): add basic User Entity and basic routing to fetch all users
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import express from 'express';
|
||||
import next from 'next';
|
||||
import { createConnection } from 'typeorm';
|
||||
import routes from './routes';
|
||||
|
||||
const dev = process.env.NODE_ENV !== 'production';
|
||||
const app = next({ dev });
|
||||
@@ -12,9 +13,7 @@ app
|
||||
.prepare()
|
||||
.then(() => {
|
||||
const server = express();
|
||||
server.get('/api', (req, res) => {
|
||||
res.json({ worked: true });
|
||||
});
|
||||
server.use('/api', routes);
|
||||
server.get('*', (req, res) => handle(req, res));
|
||||
|
||||
const port = Number(process.env.PORT) || 3000;
|
||||
|
Reference in New Issue
Block a user