16 lines
745 B
JavaScript
16 lines
745 B
JavaScript
export const MESSAGES = {
|
|
TABLE_READY: "Patient table is ready.",
|
|
ROWS_INSERTED: "Rows inserted successfully.",
|
|
|
|
INVALID_ENDPOINT: "Not found: unknown API endpoint.",
|
|
METHOD_NOT_ALLOWED: "Method not allowed on this endpoint.",
|
|
MISSING_QUERY: "Bad request: no SQL query was provided.",
|
|
INSERT_ONLY: "This endpoint only accepts INSERT statements.",
|
|
SINGLE_STATEMENT_ONLY: "Only one statement per request is allowed.",
|
|
|
|
LISTENING: "Server 2 listening on port ",
|
|
CONNECTED: "Connected to the database as ",
|
|
CONNECTION_FAILED: "Could not reach the database: ",
|
|
MISSING_CONFIG: "Missing database configuration, check your environment variables.",
|
|
};
|