🔌 Simple magnet uri shortener!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
364 B

const express = require('express');
const path = require('path');
const logger = require('morgan');
7 years ago
const router = require('./routes');
7 years ago
const app = express();
7 years ago
app.use(logger('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
app.use(express.static(path.join(__dirname, 'public')));
app.use('/', router);
7 years ago
module.exports = app;