This repository has been archived on 2026-05-05. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Operations-Research-Tool/__tests__/test.ts
T
SinusFox 5dad8c7a14 testing workflows (#14)
* Initial Push

Inititial project state

* Static demo version

* static demo site - added variables

a

* first_implementation

* Updated UI, Improved Style to be more "Reactly", added Functionality

* add parsing functions

* change folder

* Import/Export Prototype

* Adding "reactjs-popup" to package,json

* Adding GLPK source

* Preparing for deplyment workflow

* Adding workflow

* Moving test file to __tests__

* Removing German texts

* Setting up Unit Testing using jest

---------

Co-authored-by: moebiusl <lucas.moebius@icloud.com>
Co-authored-by: Marcel Pöppe <marcel.poeppe@gmail.com>
2024-09-24 17:41:24 +02:00

10 lines
320 B
TypeScript

import type { NextApiRequest, NextApiResponse } from 'next';
export default function handler(req: NextApiRequest, res: NextApiResponse) {
if (req.method === 'POST') {
res.status(200).json({ message: 'API is working!' });
} else {
res.status(405).json({ message: 'Method not allowed' });
}
}