import express from 'express'
import cors from 'cors'

//var express = require('express');
var app = express();
app.use(cors());

app.get('/sistemnik2C', (req, res) => {
  const username = canonize(req.query.username);
res.send( username );
});

app.listen(3000, () => {
  console.log('Example app listening on port 3000!');
});



function canonize(url) {

  const re = /durov|kriasoft|pavel.durov|dan_abramov|kriasoft/i;

  const username = url.match(re) || 'tjholowaychuk';
  return '@' + username;
}

@@ -1,12 +1,13 @@
+%0A
 import expre
@@ -24,16 +24,17 @@
 xpress'%0A
+%0A
 import c
@@ -214,16 +214,18 @@
 rname);%0A
+  
 res.send
@@ -238,16 +238,16 @@
 name );%0A
-
 %7D);%0A%0Aapp
@@ -327,18 +327,16 @@
 );%0A%7D);%0A%0A
-%0A%0A
 function
@@ -352,17 +352,16 @@
 (url) %7B%0A
-%0A
   const 
@@ -417,17 +417,16 @@
 soft/i;%0A
-%0A
   const 

@username