I have to store information such as name and width from the url query to my mysql database and the url query should look something like this
/register?name=XXXX&width=###.###
I guess I'm having trouble understanding the initial process of taking the inputs through my code that is sent through the URL query.
Here is my /register portion of my code. Any help is appreciated.
const express = require('express');
const mysql = require('mysql');
const moment = require('moment');
var cookieParser = require('cookie-parser');
var Cookies = require('cookies');
const db = mysql.createConnection({
host : 'localhost',
user : 'root',
password : 'somepassword',
database : 'somedatabase'
})
const app = express();
app.use(express.cookieParser());
app.get('/register', (req, res) => {
})