mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-10-04 14:36:52 +02:00
strip /api
This commit is contained in:
1 parent
efe072f97e
commit
d3e37e366f
2 files changed
+4
-4
No files matched your search
+3
-3
@@ -58,7 +58,7 @@ const start = async () => {
|
|||||||
process.on('SIGINT', shutdown);
|
process.on('SIGINT', shutdown);
|
||||||
process.on('SIGTERM', shutdown);
|
process.on('SIGTERM', shutdown);
|
||||||
|
|
||||||
server.get('/api/geocode', {
|
server.get('/geocode', {
|
||||||
schema: {
|
schema: {
|
||||||
querystring: {
|
querystring: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
@@ -78,7 +78,7 @@ const start = async () => {
|
|||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
|
||||||
server.get('/api/sponsors/github', {
|
server.get('/sponsors/github', {
|
||||||
schema: {
|
schema: {
|
||||||
querystring: {
|
querystring: {
|
||||||
type: 'object',
|
type: 'object',
|
||||||
@@ -97,7 +97,7 @@ const start = async () => {
|
|||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
|
||||||
server.head('/api/healthcheck', async (request, reply) => {
|
server.head('/healthcheck', async (request, reply) => {
|
||||||
reply.status(200).send();
|
reply.status(200).send();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ export class BoundingBox implements BoundingBoxLiteral {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const apiService = axios.create({
|
const apiService = axios.create({
|
||||||
baseURL: window.location.hostname === "localhost" ? "http://localhost:3000/api" : "/api",
|
baseURL: window.location.hostname === "localhost" ? "http://localhost:3000" : "https://api.deflock.org",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user