ahhh
This commit is contained in:
parent
78d3f56319
commit
ff63806fc6
|
@ -33,6 +33,10 @@ app.get("/test", cors(), (req, res) => {
|
|||
res.send({ ok: true });
|
||||
});
|
||||
|
||||
// Dictionary API
|
||||
app.options("/dictionary", cors());
|
||||
app.use("/dictionary", cors(), dictionaryRouter);
|
||||
|
||||
// Web Interface - returning html (mostly)
|
||||
app.use("/", cors(sameOriginCorsOpts), authRouter(passport));
|
||||
// REST API - returning json
|
||||
|
@ -40,9 +44,7 @@ app.use("/api", cors(sameOriginCorsOpts), apiRouter);
|
|||
app.use("/feedback", cors(sameOriginCorsOpts), feedbackRouter);
|
||||
// TODO: check - does this work with the cors ?
|
||||
app.use("/payment", cors(sameOriginCorsOpts), paymentRouter);
|
||||
// Dictionary API
|
||||
app.options("/dictionary", cors());
|
||||
app.use("/dictionary", cors(), dictionaryRouter);
|
||||
|
||||
|
||||
// START 💨 //
|
||||
app.listen(4000, () => console.log("Server Has Started on 4000"));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
POST https://account.lingdocs.com/dictionary/script-to-phonetics HTTP/1.1
|
||||
GET https://account.lingdocs.com/test HTTP/1.1
|
||||
content-type: application/json
|
||||
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue