Move api/tiles modules to subfolders
This commit is contained in:
parent
8214e56022
commit
961441c5c0
@ -2,7 +2,7 @@
|
||||
* Building data access
|
||||
*
|
||||
*/
|
||||
import db from './db';
|
||||
import db from '../db';
|
||||
// data type note: PostgreSQL bigint (64-bit) is handled as string in JavaScript, because of
|
||||
// JavaScript numerics are 64-bit double, giving only partial coverage.
|
||||
|
@ -6,7 +6,7 @@
|
||||
* - this DOES expose geometry, another reason to keep this clearly separated from building
|
||||
* data
|
||||
*/
|
||||
import db from './db';
|
||||
import db from '../db';
|
||||
|
||||
function queryLocation(term){
|
||||
const max_results = 5;
|
@ -2,7 +2,7 @@
|
||||
* User data access
|
||||
*
|
||||
*/
|
||||
import db from './db';
|
||||
import db from '../db';
|
||||
|
||||
|
||||
function createUser(user) {
|
@ -16,7 +16,7 @@ import pgConnect from 'connect-pg-simple';
|
||||
|
||||
import App from './frontend/app';
|
||||
import db from './db';
|
||||
import { authUser, createUser, getUserById, authAPIUser, getNewUserAPIKey } from './user';
|
||||
import { authUser, createUser, getUserById, authAPIUser, getNewUserAPIKey } from './api/user';
|
||||
import {
|
||||
queryBuildingsAtPoint,
|
||||
queryBuildingsByReference,
|
||||
@ -26,9 +26,9 @@ import {
|
||||
saveBuilding,
|
||||
likeBuilding,
|
||||
unlikeBuilding
|
||||
} from './building';
|
||||
import { queryLocation } from './search';
|
||||
import tileserver from './tileserver';
|
||||
} from './api/building';
|
||||
import { queryLocation } from './api/search';
|
||||
import tileserver from './tiles/tileserver';
|
||||
import { parseBuildingURL } from './parse';
|
||||
|
||||
// create server
|
||||
|
@ -6,7 +6,7 @@ import path from 'path';
|
||||
import mapnik from 'mapnik';
|
||||
import SphericalMercator from '@mapbox/sphericalmercator';
|
||||
|
||||
import { strictParseInt } from './parse';
|
||||
import { strictParseInt } from '../parse';
|
||||
|
||||
// connection details from environment variables
|
||||
const DATASOURCE_CONFIG = {
|
@ -5,7 +5,7 @@
|
||||
import express from 'express';
|
||||
|
||||
import { render_tile } from './tile';
|
||||
import { strictParseInt } from './parse';
|
||||
import { strictParseInt } from '../parse';
|
||||
|
||||
// tiles router
|
||||
const router = express.Router()
|
Loading…
Reference in New Issue
Block a user