mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	server: Fix missing .js import for etapi-interface
This commit is contained in:
		| @@ -5,7 +5,7 @@ import v from "./validators.js"; | |||||||
| import utils from "../services/utils.js"; | import utils from "../services/utils.js"; | ||||||
| import { Router } from 'express'; | import { Router } from 'express'; | ||||||
| import { AttachmentRow } from '../becca/entities/rows.js'; | import { AttachmentRow } from '../becca/entities/rows.js'; | ||||||
| import { ValidatorMap } from './etapi-interface'; | import { ValidatorMap } from './etapi-interface.js'; | ||||||
|  |  | ||||||
| function register(router: Router) { | function register(router: Router) { | ||||||
|     const ALLOWED_PROPERTIES_FOR_CREATE_ATTACHMENT: ValidatorMap = { |     const ALLOWED_PROPERTIES_FOR_CREATE_ATTACHMENT: ValidatorMap = { | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ import attributeService from "../services/attributes.js"; | |||||||
| import v from "./validators.js"; | import v from "./validators.js"; | ||||||
| import { Router } from 'express'; | import { Router } from 'express'; | ||||||
| import { AttributeRow } from '../becca/entities/rows.js'; | import { AttributeRow } from '../becca/entities/rows.js'; | ||||||
| import { ValidatorMap } from './etapi-interface'; | import { ValidatorMap } from './etapi-interface.js'; | ||||||
|  |  | ||||||
| function register(router: Router) { | function register(router: Router) { | ||||||
|     eu.route(router, 'get', '/etapi/attributes/:attributeId', (req, res, next) => { |     eu.route(router, 'get', '/etapi/attributes/:attributeId', (req, res, next) => { | ||||||
|   | |||||||
| @@ -6,7 +6,7 @@ import etapiTokenService from "../services/etapi_tokens.js"; | |||||||
| import config from "../services/config.js"; | import config from "../services/config.js"; | ||||||
| import { NextFunction, Request, RequestHandler, Response, Router } from 'express'; | import { NextFunction, Request, RequestHandler, Response, Router } from 'express'; | ||||||
| import { AppRequest, AppRequestHandler } from '../routes/route-interface'; | import { AppRequest, AppRequestHandler } from '../routes/route-interface'; | ||||||
| import { ValidatorMap } from './etapi-interface'; | import { ValidatorMap } from './etapi-interface.js'; | ||||||
| const GENERIC_CODE = "GENERIC"; | const GENERIC_CODE = "GENERIC"; | ||||||
|  |  | ||||||
| type HttpMethod = "all" | "get" | "post" | "put" | "delete" | "patch" | "options" | "head"; | type HttpMethod = "all" | "get" | "post" | "put" | "delete" | "patch" | "options" | "head"; | ||||||
|   | |||||||
| @@ -15,7 +15,7 @@ import { ParsedQs } from 'qs'; | |||||||
| import { NoteParams } from '../services/note-interface'; | import { NoteParams } from '../services/note-interface'; | ||||||
| import BNote from "../becca/entities/bnote.js"; | import BNote from "../becca/entities/bnote.js"; | ||||||
| import { SearchParams } from '../services/search/services/types'; | import { SearchParams } from '../services/search/services/types'; | ||||||
| import { ValidatorMap } from './etapi-interface'; | import { ValidatorMap } from './etapi-interface.js'; | ||||||
|  |  | ||||||
| function register(router: Router) { | function register(router: Router) { | ||||||
|     eu.route(router, 'get', '/etapi/notes', (req, res, next) => { |     eu.route(router, 'get', '/etapi/notes', (req, res, next) => { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user