mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
24 lines
501 B
JavaScript
24 lines
501 B
JavaScript
|
const AbstractMockApi = require('./AbstractMockApi')
|
||
|
|
||
|
class MockThirdPartyDataStoreApi extends AbstractMockApi {
|
||
|
reset() {}
|
||
|
|
||
|
deleteUser(req, res) {
|
||
|
res.sendStatus(200)
|
||
|
}
|
||
|
|
||
|
applyRoutes() {
|
||
|
this.app.delete('/user/:user_id', (req, res) => this.deleteUser(req, res))
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = MockThirdPartyDataStoreApi
|
||
|
|
||
|
// type hint for the inherited `instance` method
|
||
|
/**
|
||
|
* @function instance
|
||
|
* @memberOf MockThirdPartyDataStoreApi
|
||
|
* @static
|
||
|
* @returns {MockThirdPartyDataStoreApi}
|
||
|
*/
|