more fixes or whateva!!
parent
95543ff1a2
commit
570e97ca87
|
@ -8,17 +8,13 @@ export default class Keys extends Route {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected pre() {
|
public bind() {
|
||||||
this.router.all('*', (_req, res, next) => {
|
this.router.all('*', (_req, res, next) => {
|
||||||
res.setHeader('Access-Control-Allow-Origin', '*');
|
res.setHeader('Access-Control-Allow-Origin', '*');
|
||||||
res.setHeader('Access-Control-Allow-Methods', '*');
|
res.setHeader('Access-Control-Allow-Methods', '*');
|
||||||
res.setHeader('Access-Control-Allow-Headers', '*');
|
res.setHeader('Access-Control-Allow-Headers', '*');
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
}
|
|
||||||
|
|
||||||
public bind() {
|
|
||||||
this.pre();
|
|
||||||
|
|
||||||
this.router.get('/x509/:userID', async (req, res) => {
|
this.router.get('/x509/:userID', async (req, res) => {
|
||||||
const memberDoc = await this.server.client.db.Member.findOne({ userID: req.params.userID }).lean().exec();
|
const memberDoc = await this.server.client.db.Member.findOne({ userID: req.params.userID }).lean().exec();
|
||||||
|
|
Loading…
Reference in New Issue