server: Fix missing .js import for etapi-interface

This commit is contained in:
Elian Doran 2024-07-24 20:21:52 +03:00
parent 76fcea7189
commit 3067380338
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ import v from "./validators.js";
import utils from "../services/utils.js";
import { Router } from 'express';
import { AttachmentRow } from '../becca/entities/rows.js';
import { ValidatorMap } from './etapi-interface';
import { ValidatorMap } from './etapi-interface.js';
function register(router: Router) {
const ALLOWED_PROPERTIES_FOR_CREATE_ATTACHMENT: ValidatorMap = {

View File

@ -5,7 +5,7 @@ import attributeService from "../services/attributes.js";
import v from "./validators.js";
import { Router } from 'express';
import { AttributeRow } from '../becca/entities/rows.js';
import { ValidatorMap } from './etapi-interface';
import { ValidatorMap } from './etapi-interface.js';
function register(router: Router) {
eu.route(router, 'get', '/etapi/attributes/:attributeId', (req, res, next) => {

View File

@ -6,7 +6,7 @@ import etapiTokenService from "../services/etapi_tokens.js";
import config from "../services/config.js";
import { NextFunction, Request, RequestHandler, Response, Router } from 'express';
import { AppRequest, AppRequestHandler } from '../routes/route-interface';
import { ValidatorMap } from './etapi-interface';
import { ValidatorMap } from './etapi-interface.js';
const GENERIC_CODE = "GENERIC";
type HttpMethod = "all" | "get" | "post" | "put" | "delete" | "patch" | "options" | "head";

View File

@ -15,7 +15,7 @@ import { ParsedQs } from 'qs';
import { NoteParams } from '../services/note-interface';
import BNote from "../becca/entities/bnote.js";
import { SearchParams } from '../services/search/services/types';
import { ValidatorMap } from './etapi-interface';
import { ValidatorMap } from './etapi-interface.js';
function register(router: Router) {
eu.route(router, 'get', '/etapi/notes', (req, res, next) => {