Skip to content

Commit

Permalink
intt deployment of the client ide
Browse files Browse the repository at this point in the history
  • Loading branch information
ezzabuzaid committed Oct 5, 2019
1 parent bea0efc commit ca04281
Show file tree
Hide file tree
Showing 10 changed files with 324 additions and 223 deletions.
63 changes: 63 additions & 0 deletions _.todo
Expand Up @@ -92,3 +92,66 @@ Get the type of the decorated attr only
* to procced the operation then
* it asks the repo to hold the data in the model(database)
*/




// const createDatabaseStatement = 'CREATE DATABASE testDB';
// const createTableStatement = `
// CREATE TABLE testTable (
// id int UNSIGNED AUTO_INCREMENT PRIMARY KEY,
// title VARCHAR(255) NOT NULL,
// body VARCHAR(255) NOT NULL
// )`;

// router.use('/user', function (req, res, next) {
// console.log('Request URL:', req.originalUrl)
// next()
// }, function (req, res, next) {
// console.log('Request Type:', req.method)
// next()
// })
// Show the request info for any type of http method that call user
// ex:: cound how many user middleware called

// app.use(function (req, res, next) {
// console.log('Time:', Date.now())
// next()
// })
// Called every time (app here is application instance)

// app.use('/user/:id', function (req, res, next) {
// console.log('Request Type:', req.method)
// next()
// })
// Show the request info for any type of http method that call user
// (app here is application instance)

// to escape the next middleware call next('route')
// will escape the all middleware but next() will continue to next middleware at specific point

// This matching all route middleware under route instance and prefixed with api
// router.all('/api/*', requireAuthentication);

// this will only be invoked if the path starts with /bar from the mount point
// router.use('/bar', function (req, res, next) {
// ... maybe some additional /bar logging ...
// next();
// });

// Intercept id param under route instance and called once at a time (intercept id param)

// router.param('id', function (req, res, next, id) {
// console.log('CALLED ONLY ONCE');
// next();
// });

// router.get('/user/:id', function (req, res, next) {
// console.log('although this matches');
// next();
// });

// router.get('/user/:id', function (req, res) {
// console.log('and this matches too');
// res.end();
// });

0 comments on commit ca04281

Please sign in to comment.