-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
37 lines (27 loc) · 895 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//Chamando a biblioteca do ExpressJS
const express = require('express');
//Instanciando o Express
const app = express();
let port = 3000;
app.listen(port, ()=>{
console.log('Servidor no ar');
})
app.get('/', function(req, res){
return res.send(`<h1>Acessei a macaxeira</h1>`);
})
app.get('/usuario', function(req, res){
return res.send(`<h1>Acessei a Laura Macaxeira</h1>`);
})
app.get('/usuario/listagem', function(req, res){
return res.send(`<h1>Listagem de Usuários</h1>`);
})
app.get('/usuario/cadastro', function(req, res){
return res.send(`<h1>Cadastro de Usuários</h1>`);
})
app.get('/usuario/atualizar', function(req, res){
return res.send(`<h1>Atualizar de Usuários</h1>`);
})
app.get('/usuario/excluir', function(req, res){
return res.send(`<h1>Listagem de Usuários</h1>`);
})
console.log('Maria buchecha')