mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
257 B
11 lines
257 B
const fs = require('fs')
|
|
const express = require('express')
|
|
const router = express.Router()
|
|
const db = JSON.parse(fs.readFileSync('./api/db/stats.json', 'utf8'))
|
|
|
|
// Get statistics.
|
|
router.get('/', (req, res) => {
|
|
res.json(db)
|
|
})
|
|
|
|
module.exports = router
|