mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
4589a57774
delete user data from dropbox GitOrigin-RevId: d586c73b4500f4fe718927f537ae770356eaefc1
23 lines
501 B
JavaScript
23 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}
|
|
*/
|