This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const customTheme = { | |
fonts: { | |
body: "system-ui, sans-serif", | |
heading: "Georgia, serif", | |
mono: "Menlo, monospace", | |
}, | |
colors: { | |
transparent: "transparent", | |
black: "#000", | |
white: "#ffffff", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Tabs> | |
<TabList> | |
<Tab>Tab1</Tab> | |
<Tab>Tab2</Tab> | |
<Tab>Tab3</Tab> | |
<Tab isDisabled>Tab4 disabled</Tab> | |
</TabList> | |
<TabPanels> | |
<TabPanel> | |
<p>one!</p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cheerio = require('cheerio'); | |
const request = require('request'); | |
module.exports = { | |
getTeams: function (req,res,next) { | |
request('https://www.promiedos.com.ar/historiales', (err,resr,body)=>{ | |
if(!err && resr.statusCode == 200){ | |
let $ = cheerio.load(body); | |
let teams = []; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const app = require('express')(); | |
var historyController = require('../controllers/historyController'); | |
app.get('/api', historyController.getTeams); | |
app.get('/api/:team', historyController.getHistoryByTeam); | |
module.exports = app; |