mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
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
255 B
11 lines
255 B
const fs = require('fs')
|
|
const express = require('express')
|
|
const router = express.Router()
|
|
let db = JSON.parse(fs.readFileSync('./api/db/stats.json', 'utf8'))
|
|
|
|
// Get statistics.
|
|
router.get('/', (req, res) => {
|
|
res.json(db)
|
|
})
|
|
|
|
module.exports = router
|